renatoathaydes / spock-reports

This project creates a global extension to Spock to create test reports.
Apache License 2.0
273 stars 68 forks source link

How it should be configured with `jvm-test-suite` #256

Open marcindabrowski opened 10 months ago

marcindabrowski commented 10 months ago

In Gradle we have The JVM Test Suite Plugin. It enables me to create multiple test folders - for example except the standard src/test/groovy test directory, I also have src/integrationTest/groovy. I'm also using The Test Report Aggregation Plugin.

The problem is that spock-reports do not create the report with integration tests when run on clean repo. When there was previous run of the tests, there will be present in the report. But the point is to have it done also on clean repos.

Do you know how I could configure it, to run properly?

I should to add that integration test are run after unit tests. I'm using 2.5.1-groovy-4.0 version.

renatoathaydes commented 10 months ago

Spock reports is a Spock plugin, so if Spock runs a test, then Spock-reports should be called by Spock. I don't know why it would be creating reports only when it's not a clean repository. Do you get the default Gradle reports created properly? Are you sure all your Spock tests are running? Try running the build with --debug log enabled as it may show some problems.