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

Reporting test names #282

Merged
merged 2 commits into from
Nov 16, 2020

Conversation

vincentdehaan
Copy link
Contributor

This PR adds a feature to report the name of the test that provides coverage of a specific statement. This is reported in the statement list in the HTML report. I will also submit an accompanying PR for the SBT plugin.

I implemented this in such a way that it shouldn't break anything: if the compiler plugin is used with an older sbt/maven/gradle plugin, the functionality is turned off.

For some reason, the file writer behaves unpredictably on Scala.js which affects this feature. I am planning to look into this in the future, but for now, I disabled the feature on Scala.js.

@vincentdehaan
Copy link
Contributor Author

@gslowikowski Are you planning to merge this feature? Please let me know if I need to make additional changes.

@sksamuel
Copy link
Member

sksamuel commented Sep 5, 2020

Can you check this works with latest master (which has scala js 1.0)

@vincentdehaan vincentdehaan force-pushed the feature/report-test-names branch from 4c5f429 to 0ff8f6c Compare September 11, 2020 21:31
@vincentdehaan
Copy link
Contributor Author

It seems to work now! I just pushed a new commit to clean up the code a bit.

@vincentdehaan vincentdehaan force-pushed the feature/report-test-names branch from 0ff8f6c to dc99882 Compare September 12, 2020 13:13
@sksamuel sksamuel merged commit 138f652 into scoverage:master Nov 16, 2020
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

Successfully merging this pull request may close these issues.

2 participants