榆木测试不识别记者标志

时间:2019-06-01 17:04:52

标签: json junit gitlab-ci elm elm-test

我们决定使用测试中的JUnit xml文件,并在CI期间将它们作为工件上传到Gitlab。

对于榆树,我遵循https://www.npmjs.com/package/elm-test?activeTab=readme并使用

./node_modules/.bin/elm-test --compiler ./node_modules/.bin/elm app/frontend/elm/tests/ --reporter=junit

但是实际上什么也没做。输出为纯文本。

MacBook-Pro-6:enectiva admin$ ./node_modules/.bin/elm-test --compiler ./node_modules/.bin/elm app/frontend/elm/tests/ --reporter=junit

elm-test 0.19.0
---------------

Running 286 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 369554180583103 /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/BareTime/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ChartAndControlSet/AllEnergies/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ChartAndControlSet/ChartPort/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ChartAndControlSet/Data/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ChartAndControlSet/SingleEnergy/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/Disableable/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/Enectiva/Elm/I18n.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/Enectiva/EntityTree/EntityTree.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/Exports/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ExportStatePoller/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/ExportTemplate/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/HourFilter/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/PriceListForm/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/SelectionState/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/SourceSelection2/Tests.elm /Users/admin/go/src/enectiva.cz/enectiva/app/frontend/elm/tests/Visibility/Tests.elm


TEST RUN PASSED

Duration: 1049 ms
Passed:   286
Failed:   0

json相同。

再现部分的输出中可以看到,elm-test甚至没有注意到reporter标志。

有人知道解决方案吗?

1 个答案:

答案 0 :(得分:0)

我不好。

错别字,应该使用report代替reporter