Replies: 4 comments 6 replies
-
An interesting idea! https://github.com/openjdk/jcstress Marc should be able to answer your questions - otherwise I'll take a deeper look later. |
Beta Was this translation helpful? Give feedback.
-
Oh! My favorite topic! 😀 Most build tools don't actually support the JUnit Platform. Rather they support JUnit 4. Support for the Jupiter Engine consists of an adapter to the JUnit 4 model of class+method. The JUnit Platform is only supported to the extent that an engine behaves like the JUpiter engine (overly simplified for brevity). I already complained about this before in #2849 (and more recently cucumber/cucumber-jvm-scala#403).
No. That is not vital. But I had a quick look at |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
Looks like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a test engine for jcstress, and it looks like
Engine -> Test
structure does not work, and it looks like JUnit requires to have a container.For reference,
JCStress
does not have method-level tests, and it mainly uses@JCStressTest
class-level annotation.I tried the following:
ClassDescriptor.type = Type.TEST
andClassDescriptor.type = Type.CONTAINER_AND_TEST
: discovery works, a proper execution request arrives toexecute
, however, after execution Gradle fails with "No matching tests found in any candidate test task"ClassDescriptor.type = Type.CONTAINER
: discovery does not work (JUnit trims empty containers)If I go with
Type.CONTAINER
for the class and add a dummyTEST
under the container, then everything starts working: Gradle prints the proper test execution status andNo matching tests found in any candidate test
error goes away.Could you please clarify if
Engine -> Container
is vital? I wasn't able to infer it in the documentationIt looks like
getTestClassNames
does not supporttest is a leaf
scenarios due togetAncestors()
call atjunit-framework/junit-platform-launcher/src/main/java/org/junit/platform/launcher/core/StackTracePruningEngineExecutionListener.java
Line 49 in 7ebd0a7
However, it does not seem to be related to Gradle's "no matching tests found"
Beta Was this translation helpful? Give feedback.
All reactions