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

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

问题描述

我在 github 上有一个包含大量单元测试的项目(对 node.js 使用 mocha).

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 是运行测试还是需要连接外部 web 应用?
  • 是否有免费的网络服务可以做到这一点(我的应用是开源的)?

推荐答案

看看 Travis CI.您可以将它与 GitHub 一起使用.

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

他们有 关于使用 NodeJS 的文档

您看到的那些徽章称为 "status images" 并且 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天全站免登陆