Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [data-dev] TestEngine with ID 'junit-jupiter' failed to discover tests error

Hello Gurunandan,

Based on the error stack it seems like JUnit was unable to execute the test after deployment.

     at org.jboss.arquillian.junit5.container.JUnitJupiterTestRunner.execute(JUnitJupiterTestRunner.java:51)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.executeTest(ServletTestRunner.java:139)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.execute(ServletTestRunner.java:117)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.doGet(ServletTestRunner.java:86)

So you might need to look at your server logs to determine if the deployment was unsuccessful or if the deployment artifact (war) was incomplete.
I looked through your pom and the only thing I noticed was missing was this section: 
https://github.com/jakartaee/data/blob/53ab38181e7dbdef991609b1941394f770f6c557/tck-dist/src/main/starter/ee-pom.xml#L213

Though I would expect that to affect the failsafe plugin's ability to find tests on the client, not for arquillian to find tests on the server.

Let me know if that helps,
Kyle Jon Aure

On Tue, Feb 25, 2025 at 3:31 AM Gurunandan Rao via data-dev <data-dev@xxxxxxxxxxx> wrote:
Hello data-dev,
When I am running jakarta data tck entity tests  with glassfish 8, an error message "TestEngine with ID 'junit-jupiter' failed to discover tests" is got. Please note the error is with Entity tests, rest of the tests passes. Please refer the following stack trace.
Also attached the pom.xml and run.log.


---------------------------------------------------------------------------------------


 ee.jakarta.tck.data.standalone.persistence.PersistenceEntityTests.testQueryWithPositionalParameters -- Time elapsed: 0.007 s <<< ERROR!
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
      at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverEngineRoot(EngineDiscoveryOrchestrator.java:160)
      at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverSafely(EngineDiscoveryOrchestrator.java:134)
      at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discover(EngineDiscoveryOrchestrator.java:108)
      at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discover(EngineDiscoveryOrchestrator.java:80)
      at org.junit.platform.launcher.core.DefaultLauncher.discover(DefaultLauncher.java:110)
      at org.junit.platform.launcher.core.DefaultLauncher.discover(DefaultLauncher.java:78)
      at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.discover(DefaultLauncherSession.java:81)
      at org.junit.platform.launcher.core.SessionPerRequestLauncher.discover(SessionPerRequestLauncher.java:46)
      at org.jboss.arquillian.junit5.container.JUnitJupiterTestRunner.execute(JUnitJupiterTestRunner.java:51)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.executeTest(ServletTestRunner.java:139)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.execute(ServletTestRunner.java:117)
      at org.jboss.arquillian.protocol.servlet5.runner.ServletTestRunner.doGet(ServletTestRunner.java:86)
      at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:633)
      at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:723)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1316)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:563)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:504)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:121)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:294)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:187)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:429)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:143)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
      at java.base/java.lang.Thread.run(Thread.java:840)
_______________________________________________
data-dev mailing list
data-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org

Back to the top