-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should error when Container tests do not contain a nested test #2383
Comments
It's because you haven't "completed" the test. |
Thanks for the response, @sksamuel ! And what about the way the tests are shown on Gradle 7, they are pretty different, is that the intended behaviour? |
Gradle doesn't understand nested tests. |
Added in master for 5.0 release |
Which version of Kotest are you using
4.6.1
I've noticed the following behavior when I've upgrade Gradle from 6.6.1 to 7.1.1.
When using WordSpec style, if we write the tests with
When
andshould
, without one more nested level, test class does not show on JUnit HTML report.I was able to observe that the tests were running when a test fail, this way, the test is shown but without class name and package (default-package name instead). If we add one more level nested inside
should
, the tests are shown correctely.Dependencies versions:
Compile but does not produce correct JUnit HTML report:
Compile and does show on JUnit HTML report:
Is this a bug? Why this works on Gradle 6.6.1?
I've made an example project to show this behaviour:
Sample project
UPDATE
Actually, the way the reports are shown, has fundamentally changed:
Gradle 6
Gradle 7
The text was updated successfully, but these errors were encountered: