rules_jvm icon indicating copy to clipboard operation
rules_jvm copied to clipboard

issue with java_test_suite package inference

Open m4tta opened this issue 3 years ago • 0 comments

So from what I can tell unless your package begins with a common domain (".com.", ".org.", ".net.", ".io.", ".ai.") it won't correctly load the class file.

So for example if I have a test class at src/test/java/fish/boxjelly/web/WebApplicationTests.java and has the package of package fish.boxjelly.web; It will attempt to load the class using the full path with the src.test.java.fish.boxjelly.web.WebApplicationTests instead of fish.boxjelly.web.WebApplicationTests

Is there a way to supply a base folder to exclude? If I could tell the test suite that src.test.java should be ignored things would work.

m4tta avatar Oct 22 '22 23:10 m4tta