Skip to content

feat: automatically resolve non-absolute paths to files #189

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

Merged
merged 2 commits into from
Apr 9, 2020

Conversation

bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Apr 9, 2020

Before generating report, updates nyc results JSON file. If there is a non-absolute path, and file exists, changes the path to absolute. This puts files instrumented in different ways in the same report folder, allowing for better reports

before

Screen Shot 2020-04-09 at 5 31 36 PM

after

Screen Shot 2020-04-09 at 5 40 17 PM

@bahmutov bahmutov merged commit 461910d into master Apr 9, 2020
@bahmutov
Copy link
Contributor Author

bahmutov commented Apr 9, 2020

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

rndmerle pushed a commit to rndmerle/code-coverage that referenced this pull request Apr 25, 2020
* feat: automatically try to resolve relative paths to files

* only save coverage file if it has been updated
@emilyrohrbough emilyrohrbough deleted the resolve-paths branch March 22, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try to resolve source file paths before generating the report
1 participant