elm-coverage
elm-coverage copied to clipboard
[Feature request] Support multiple paths.
Sometimes it's nice to have an option to specify multiple paths where sources are located.
Hello @akoppela ,
Am currently working on a PR to get paths from source-directories
of tests/elm-package.json
.
Means you can have the following :
tests
\__ elm-package.json
src
\__ dir1
\___ [elm sources]
\__ dir2
\___ [elm sources]
and in tests/elm-package.json
sources-directories : [
"../src/dir1",
"../src/dir2"
]
Running elm-coverage src
will complete your tests and be able to generate your report.
Not sure if that's what you are expecting tho, still need to specify a root directory to avoid instrumenting libraries and code that you didn't produced.
--> wont work if you have sources in multiple "root" directories
I have issues with this too. I even have directories outside the project root.