NeoVim Version
NVIM v0.11.2
Build type: Release
LuaJIT 2.1.1748459687
Describe the bug
When I tried to watch Junit test class that tests the class in the same package, so it has no import statement of that class, the change of testing class has no effect. Test only runs automatically when I specify import statement of the class in the same package. Here's the example.
// App.java
package org.example;
public class App {
public String getGreeting() {
return null;
}
}
// AppTest.java
package org.example;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import org.example.App; // Watch works only after I added this line
class AppTest {
@Test void appHasAGreeting() {
App classUnderTest = new App();
System.out.println(classUnderTest.getGreeting());
assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
}
}
Expected behavior
The test that I watching should also run automatically when I change the target class even if the import statement does not exist.
Logs
no logs to provide
Additional context
nothing
NeoVim Version
NVIM v0.11.2
Build type: Release
LuaJIT 2.1.1748459687
Describe the bug
When I tried to watch Junit test class that tests the class in the same package, so it has no import statement of that class, the change of testing class has no effect. Test only runs automatically when I specify import statement of the class in the same package. Here's the example.
Expected behavior
The test that I watching should also run automatically when I change the target class even if the import statement does not exist.
Logs
no logs to provide
Additional context
nothing