2

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?

Zealot
  • 51
  • 4
  • The issue is that gradle itself doesn't support anything other than basic test layout. This is being addressed in gradle, and (hopefully) should be fixed soon (although it was 4.9 then 4.10 then ....). Perhaps kotlintest should offer its own HTML report option. – sksamuel Oct 02 '18 at 17:03

0 Answers0