有没有办法将 Jenkins 集成到基于 Jasmine 构建的 Javascript Jest 测试框架中?
我尝试将 Jest 与茉莉花记者 https://github.com/larrymyers/jasmine-reporters,但未能获得 JUnit XML 输出。我安装了 Jasmine 1.3 的记者npm install jasmine-reporters@~1.0.0
然后在我的setupTestFrameworkScriptFile
:
require('jasmine-reporters');
jasmine.VERBOSE = true;
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter({
savePath: "output/"
}));
当我跑步时jest
I get NodeJS attempt: Arguments to path.join must be strings
or NodeJS attempt: Object [object Object] has no method 'join'
.
我已经成功地得到了它的工作版本repo https://github.com/palcu/jest-example。问题是我不是在嘲笑path
and fs
在测试文件中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)