dave08
08/07/2024, 11:33 AMCLOVIS
08/07/2024, 11:35 AMdave08
08/07/2024, 11:36 AMdave08
08/07/2024, 11:36 AMCLOVIS
08/07/2024, 11:37 AMCLOVIS
08/07/2024, 11:39 AMCLOVIS
08/07/2024, 11:39 AMCLOVIS
08/07/2024, 11:40 AMdave08
08/07/2024, 11:41 AMCLOVIS
08/07/2024, 11:44 AMdave08
08/07/2024, 11:45 AMdave08
08/07/2024, 11:49 AMCould not find Junit/TestNg TestCase you are running, supported frameworks: Junit3, Junit4, Junit5, TestNg
java.lang.RuntimeException: Could not find Junit/TestNg TestCase you are running, supported frameworks: Junit3, Junit4, Junit5, TestNg
at org.approvaltests.namer.AttributeStackSelector.selectElement(AttributeStackSelector.java:69)
at com.spun.util.tests.TestUtils.getCurrentFileForMethod(TestUtils.java:181)
at com.spun.util.tests.TestUtils.getCurrentFileForMethod(TestUtils.java:174)
at org.approvaltests.namer.StackTraceNamer.<init>(StackTraceNamer.java:17)
at org.approvaltests.Approvals$1.load(Approvals.java:41)
at org.approvaltests.Approvals$1.load(Approvals.java:38)
at org.approvaltests.Approvals.createApprovalNamer(Approvals.java:265)
dave08
08/07/2024, 11:50 AMdave08
08/07/2024, 11:59 AMby prepared { }
w/o the suite/test structure in regular junit5 @CLOVIS?dave08
08/07/2024, 12:01 PMCLOVIS
08/07/2024, 12:02 PMCLOVIS
08/07/2024, 12:03 PMCLOVIS
08/07/2024, 12:03 PMkotlin-test
runner on the JVM, it does use JUnit5dave08
08/07/2024, 12:06 PMdave08
08/07/2024, 12:07 PMtry
{
Class.forName("org.junit.platform.commons.annotation.Testable");
isJunit5Present = true;
}
catch (ClassNotFoundException e)
{
isJunit5Present = false;
}
dave08
08/07/2024, 1:56 PMAfter waiting for 10s, the test coroutine is not completing, there were active child jobs: [UndispatchedCoroutine{Active}@6d7c9508]
kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 10s, the test coroutine is not completing, there were active child jobs: [UndispatchedCoroutine{Active}@6d7c9508]
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$2$1.invoke(TestBuilders.kt:351)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$2$1.invoke(TestBuilders.kt:335)
at kotlinx.coroutines.InternalCompletionHandler$UserSupplied.invoke(CompletionHandler.common.kt:67)
at kotlinx.coroutines.InvokeOnCancelling.invoke(JobSupport.kt:1438)
at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1483)
at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:806)
at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:766)
at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:682)
at kotlinx.coroutines.JobSupport.cancelCoroutine(JobSupport.kt:669)
at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:156)
at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:498)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:105)
at java.base/java.lang.Thread.run(Thread.java:840)
dave08
08/07/2024, 1:57 PM@Test
fun test1() = runTestDsl("test", EmptyCoroutineContext, TestConfig.Empty) {
...
CLOVIS
08/07/2024, 2:28 PMThis seems to be the check for junit5:
``` try
{
Class.forName("org.junit.platform.commons.annotation.Testable");
isJunit5Present = true;
}
catch (ClassNotFoundException e)
{
isJunit5Present = false;
}```I mean… I guess you could create that annotation yourself.
CLOVIS
08/07/2024, 2:28 PMdave08
08/07/2024, 3:20 PMCLOVIS
08/07/2024, 3:21 PMCLOVIS
08/07/2024, 3:21 PMdave08
08/07/2024, 3:23 PM