Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Support multiple paths. #11

Open
akoppela opened this issue Apr 19, 2018 · 2 comments
Open

[Feature request] Support multiple paths. #11

akoppela opened this issue Apr 19, 2018 · 2 comments

Comments

@akoppela
Copy link

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

@xAt0mZ
Copy link

xAt0mZ commented May 31, 2018

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

dillonkearns added a commit to dillonkearns/elm-snapshot-test that referenced this issue Aug 31, 2020
@francescortiz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants