github )通常你把源代码放在文件夹里 src/main/<language> 和测试 src/test/<language>
src/main/<language>
src/test/<language>
我用的是榆树 elm-explorations/test 运行我的测试(因为我使用的是elm0.19),但是我似乎找不到将测试文件夹更改为 src/test/elm 而不是 tests .
src/test/elm
tests
我试过换衣服 elm.json 并添加:
elm.json
"test-directories": [ "src/test/elm" ]
但这似乎不管用。所以我的问题是:
如何更改文件夹 elm-test 假设测试位于?
elm-test
tests 文件夹已硬编码 https://github.com/rtfeldman/node-test-runner/blob/master/lib/elm-test.js ,我不知道是什么原因。
作为一种可能的解决方法,你可以创建一个 测验 符号链接到您的文件夹。
测验