我在github上有一个项目,它有大量的单元测试(使用node.js的mocha )。
我想通过在每个页面上显示那些通过/失败的测试来炫耀。我注意到Github上的其他项目也在做这件事。
我找不到任何关于如何显示测试状态的文档。
发布于 2012-11-25 06:11:04
看看Travis CI吧。您可以将其与GitHub一起使用。
您看到的那些徽章在项目的README.md文件中称为"status images" and Travis provides MarkDown that you can insert。
发布于 2013-04-27 07:51:59
请注意,自2013年4月26日起,您可以在GitHub repo branch page上看到build status
Commit Status API允许您在其他地方使用它:请参阅" Repo Statuses API“。
从2013年4月30日开始,API endpoint for commit statuses已扩展为允许分支和标记名,以及提交SHAs。
发布于 2016-05-15 15:14:55
CircleCI the status badges也是简单的图像,您可以使用标记将其拖放到README.md
文件中。例如:
![Build Status](https://circleci.com/gh/<your github name>/<repo name>.png?circle-token=:circle-token)
或
![Build Status](https://circleci.com/gh/<your github name>/<repo name>.svg?style=shield&circle-token=:circle-token)
https://stackoverflow.com/questions/13546097
复制相似问题