Unexpected: abstract test classes are run ...

Kevin Rushforth kevin.rushforth at oracle.com
Tue Oct 15 11:54:05 UTC 2019


Our convention, which is codified in build.gradle (but not documented 
well), is that the name of any concrete unit test class must end with 
exactly `Test`. Similarly, the name of any abstract super class or 
utility class should not end with `Test`. It's a little clunky, but 
dates back to the very early port of JavaFX build to gradle.

Or are you seeing something else?

As for the version of junit, we could consider updating to a newer 
version (it would need us to do a third-party approval), if there were 
enough benefit. It would be behind a few other things for openjfx14...

-- Kevin

On 10/15/2019 4:48 AM, Jeanette Winzenburg wrote:
>
> .. with gradle :controls:test
>
> Maybe related to the outdated version (4.8.2 of junit) as well as the 
> problem with missing name property (of Parameterized? Don't know, though.
>
> The workaround seems to be to @Ignore abstract tests - descendants are 
> run as expected.
>



More information about the openjfx-dev mailing list