Skip to content

Coverage missing on case class (constructor)? #142

Open
@TimSoethout

Description

@TimSoethout

Here is my test project:
https://github.com/TimSoethout/scala-java-maven-code/tree/code-coverage-scoverage
Then I run mvn clean scoverage:report then look at the report in module1/target/site/scoverage/index.html.
The case class TryOut is called in the test case, but the report (and coverage.xml) has no account of the case class line being covered.

Is this by design? Or am I missing something?
Also if I move the class to an object, so no instance of HelloScala is needed, it results in a similar report with no coverage on the case class.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions