Hi,
A bit Context : The build
task runs test
task as well present in the tasks list to be executed. Since the default testFramework is junit4, Gradle searches for compatible classes and executes them further. If the test classes are junit5 based then it skips.
How does Gradle detects the actual classes to be executed or respective framework runner would identify that?
Want to build logic inside the Custom Gradle Plugin to detect if the default definition of test
task would execute any classes further or not. Will execute a custom task on the basis of that.
task junitTest(type: Test) {
useJUnitPlatform()
}
vs
test {}
where test classes are junit5 runner based.