Renaming test file causing test class to be deleted #28916
Labels
a:bug
in:groovy-plugin
in:java-plugins
java-library, java, java-base, java-platform, java-test-fixtures
Current Behavior
I'm finding that if I write a test with the right class name and wrong filename, and then build+run the tests, and then rename the test to have the write filename, that the test stops running because its class no longer gets created
Expected Behavior
It would be nice if the test would build and run even if it had previously existed with a different filename
Context (optional)
I was trying to write tests for Gradle itself and found that my test wasn't running, and I suspect that this might be why.
Steps to Reproduce
To reproduce, run this script inside a checkout of Gradle itself:
When I run this script inside a checkout of Gradle at tag
v8.7.0
, I get this output:Gradle version
v8.7.0
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: