Skip to content

Separate Kover report for Integration tests #732

@tembi4

Description

@tembi4

We're migrating from Java to Kotlin and from JaCoCo to Kover. The structure of source folders:
my_project:

  • src
  • unitTestSrc
  • integrationTestSrc

I use test to run unit tests and integrationTest task to execution only tests from integrationTestSrc.

How can I create a separate tasks for unit test coverage and integration? I need to run the integration tests in pipeline only after the unit test coverage verification is passed.
Currently (I just simply added the Kover), when I run koverHtmlReport it runs integrationTest (probably because it's of type Test?) and unit tests and somehow merge results where:

  • source is covered
  • but I also have my integration test (with default/empty package) inside this report as well.

So, I need, basically, run unit tests, generate/verify , after this run integration test and generateReport/verifyRules only for what is covered by Int tests.
Thanks in advance!

Metadata

Metadata

Assignees

Labels

QuestionSupport request issue typeS: waiting for clarificationStatus: additional information required to proceed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions