admin管理员组文章数量:1252714
I have Jasmine unit tests that I would like to run and get Istanbul code coverage reports for. I can run a mand line script to run Karma in Jenkins, but it would be nice to have everything execute using my build.gradle.
Is it possible to run Karma using Gradle? I've searched google, but I can't seem to find a solution.
Thanks
I have Jasmine unit tests that I would like to run and get Istanbul code coverage reports for. I can run a mand line script to run Karma in Jenkins, but it would be nice to have everything execute using my build.gradle.
Is it possible to run Karma using Gradle? I've searched google, but I can't seem to find a solution.
Thanks
Share Improve this question asked Apr 11, 2014 at 20:05 EricEric 4871 gold badge6 silver badges16 bronze badges2 Answers
Reset to default 8I solved this by creating and running an executable task in the build.gradle file:
task karma(type:Exec)
{
mandLine 'karma', 'start', '--single-run true'
}
Following up here for anyone searching this in 2016 or later:
There's now a Gradle Karma Plugin that is worth considering.
本文标签: javascriptRun Karma using GradleStack Overflow
版权声明:本文标题:javascript - Run Karma using Gradle? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740311474a2259490.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论