我们决定使用测试中的 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
标志。
有没有人有解决方案的想法?