[英]Why is testem reporting all the tests as a single test?
我有多個通過測試,但是所有內容都報告為一個測試。
這是一個Node應用程序,它永遠不會在瀏覽器中運行。
輸出量
1..1
測試1
通過1
Testem配置:
module.exports = {
src_files: [
'test/**/*.js'
],
launchers: {
Node: {
command: './node_modules/.bin/mocha'
}
},
launch_in_ci: ['Node'],
launch_in_dev: ['Node'],
};
摩卡咖啡選擇:
--recursive
--bail
--sort
--full-trace
--no-timeouts
--ui bdd
--colors
--exit
為了解決這個問題,您必須在Testem配置中指定報告者和協議,如下所示:
launchers: {
Node: {
command: './node_modules/.bin/mocha -R tap',
protocol: 'tap'
}
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.