elm-coverage icon indicating copy to clipboard operation
elm-coverage copied to clipboard

[Feature request] Support multiple paths.

Open akoppela opened this issue 6 years ago • 2 comments

Sometimes it's nice to have an option to specify multiple paths where sources are located.

akoppela avatar Apr 19 '18 13:04 akoppela

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

xAt0mZ avatar May 31 '18 10:05 xAt0mZ

I have issues with this too. I even have directories outside the project root.

francescortiz avatar Feb 08 '21 08:02 francescortiz