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

Generate the report only after the tests have run #36

Closed
wants to merge 1 commit into from

Conversation

RichardBradley
Copy link
Contributor

Fix for #31

@RichardBradley
Copy link
Contributor Author

We have a functional test phase in our project build, using Scoverage.
I think I posted the SBT code on one of these issues once.

Our use case is that we want to run both types of test, and generate a single aggregate report.

Our build looks like:

  • We have defined a custom SBT "config" which is based on scoverage in parts
  • We run the functional tests, instrumented, but without generating a report
  • We run "scoverage:test", which adds the unit test coverage to the same data files, then generates a report

The new "ScoverageITest" mode doesn't fit our use case. I've added some code comments explaining the issues, but I haven't attempted to fix it.

// The coverage report will be additive in that case.
//
// TODO: this feature needs some thought to be more useful.
// The following use cases are not currently supported:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I suppose this isn't quite correct -- it will more or less work, but you'll generate the report twice and throw away one, which seems wasteful)

@RichardBradley
Copy link
Contributor Author

Also fixes #29

@RichardBradley
Copy link
Contributor Author

(Don't merge yet: this is broken, sorry)

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.

1 participant