如何显示我的测试通过/失败在Github? [英] How do show my tests passing/failing in Github?

查看:172
本文介绍了如何显示我的测试通过/失败在Github?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目在github上有广泛的单元测试(使用mocha的node.js)。

I have a project on github that has extensive unit tests (using mocha for node.js).

我想通过显示每个页面上通过/失败的测试来炫耀。我注意到Github上的其他项目正在这样做。

I'd like to show off by showing those tests passing/failing on each page. I notice other projects on Github are doing this.

我无法找到任何有关如何显示测试状态的文档。

I've been unable to find any documentation on how to make the test status display.


  • 如何使Github显示单元测试输出?

  • Github是否运行测试,或者需要连接外部webapp吗?

  • 是否有免费的网络服务(我的应用程序是开源)?

推荐答案

查看

Take a look at Travis CI. You can use it with GitHub.

他们有关于使用NodeJS的文档

您看到的那些徽章称为状态图像,Travis提供MarkDown,您可以将其插入项目的README。 md文件。

Those badges you see are called "status images" and Travis provides MarkDown that you can insert into your project's README.md file.

这篇关于如何显示我的测试通过/失败在Github?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆