TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bats: TAP-compatible testing for Bash

41 点作者 sstephenson超过 13 年前

3 条评论

kinow超过 13 年前
Hi there,<p>Perhaps you could add this to the list of TAP Producers in testanything.org. Here's the link for the Shell producers entry.<p><a href="http://testanything.org/wiki/index.php/TAP_Producers#SH_.2F_Shell_Script" rel="nofollow">http://testanything.org/wiki/index.php/TAP_Producers#SH_.2F_...</a><p>There are two other tools that produce TAP in Shell there, but I haven't used any of them. Before going to sleep I decided give it a try to use Bats in Jenkins. Here's the result:<p><a href="http://www.kinoshita.eti.br/2011/12/30/testing-shell-code-and-producing-tap-using-jenkins/" rel="nofollow">http://www.kinoshita.eti.br/2011/12/30/testing-shell-code-an...</a><p>Thanks for sharing.<p>Cheers, Bruno P. Kinoshita
评论 #3410737 未加载
apenwarr超过 13 年前
You could also try wvtest, which is a bit lighter weight and works with any shell, not just bash: <a href="https://github.com/apenwarr/wvtest" rel="nofollow">https://github.com/apenwarr/wvtest</a>
LeafStorm超过 13 年前
Why, for the love of Notch, do people keep porting everything that you're supposed to be doing in a real programming language to Bash? Yes, it's Turing complete, but the syntax is ugly and inconsistent, there is just about no support for data structures, and you have to fork a process to do practically anything!
评论 #3409077 未加载
评论 #3409112 未加载