admin管理员组文章数量:1327928
We are using Team Foundation Server 2010 and we have some JavaScript unit tests running on our local machines using Jasmine.
We are using the workflow based builds.
Has anyone had any success running Jasmine tests during their builds? Can you break the build if the Jasmine tests fail?
We are using Team Foundation Server 2010 and we have some JavaScript unit tests running on our local machines using Jasmine.
We are using the workflow based builds.
Has anyone had any success running Jasmine tests during their builds? Can you break the build if the Jasmine tests fail?
Share Improve this question edited Mar 20, 2014 at 20:55 Dylan Smith 22.3k2 gold badges50 silver badges63 bronze badges asked Apr 13, 2012 at 20:17 Paul OliverPaul Oliver 7,6815 gold badges33 silver badges34 bronze badges 02 Answers
Reset to default 7The way I've seen this done is using the Chutzpah Test Runner available on CodePlex: http://chutzpah.codeplex./
This allows you to run Jasmine/QUnit tests from a mand-line which can then be easily integrated with a TFSBuild using the InvokeProcess Activity.
you should checkout http://www.codit.eu/blog/2015/03/18/continuous-integration-with-javascript-nunit-on-tfsbuild-(part-23)/
The blogpost describes a plete scenario how to execute your JavaScript Unit tests on the Team Foundation Build server. Basically it uses Grunt (taskrunner) and Powershell. It also has an example of code coverage reports that you can use.
本文标签: tfsJavaScript Unit Tests with Team Foundation Server BuildStack Overflow
版权声明:本文标题:tfs - JavaScript Unit Tests with Team Foundation Server Build - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742252695a2441056.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论