So in general sometimes you might want to setup some test beans and stuff in a class annotated with @TestConfiguration (spring). Right now neotest-java treats those classes as classes containing tests and is trying to run those classes. In general there might be a scenario where:
A file contains only the @TestConfiguration annotation - is_test_file should return false
A file contains @TestConfiguration and a @Test annotation - is is_test_file should return true
A file contains @Test annotation and doesn't contain @TestConfiguration - this should return true
So in general sometimes you might want to setup some test beans and stuff in a class annotated with
@TestConfiguration
(spring). Right now neotest-java treats those classes as classes containing tests and is trying to run those classes. In general there might be a scenario where:Hope this helps :D awesome work dude btw!