Generate complete kotlintest report in a Jenkins pipeline?

172 views Asked by At

I am using kotlintest with gradle. When I run my tests in IntelliJ I get to see the whole Given/When/Then structure. This is also reflected in the report I can generate using the IntelliJ Export Test Results function. This works perfectly and does exactly what I want.

Sadly, when I run the tests using gradlew test it only picks up the Then blocks. That means that while all tests are run correctly, the generated report looks ugly.

The problem is that I want to generate an HTML report automatically in a Jenkins pipeline. At the moment the result is useless, because it does not contain the Given and When blocks.

Is it possible to somehow generate a complete HTML report, with all Given/When/Then blocks in a Jenkins pipeline?

0

There are 0 answers