Open sgflt opened 3 years ago
If it happens could be some payara, embeded mode or configuration problem?
Because: I have local built of fork with merged #301 run on Wildfly in container managed mode and using @org.eu.ingwar.tools.arquillian.extension.suite.annotations.ArquillianSuiteDeployment and WF is started once for all 1000+ test. This behaviour I have had when I run IT test with vintage engine on 1.6.0. On locally built latest 1.7.0.Final-SNAPSHOT all run in one server instance fine.
I've just created test reproducers. Wait for it.
Tests are in core module. https://github.com/sgflt/payara-test-case/commit/6aaa97520a223d0dba6d1a882e42822afa602efe
I have to correct previoust statement about each test method. Single test class run is OK. Only if multiple test classes are executed in the same run, the first class passes and the second one fails.
Interesting. Command line run seem to be working, but running tests in IntellJ is faulty as described. Maybe there is another cause.
But yes, tests are executed by vintage engine, so I will wait for #301 to be merged. I was unable to build it localy.
@sgflt I just released 1.7.0.Alpha8 with the changes you are waiting for. Should be in Maven Central in a few hours.
Give it a spin and come back with feedback, please. We will investigate further if needed.
I've hit a very similar issue while working on the Spockframe testrunner for JUnit 5 and Spockframe 2.0. It turns out that JUnitPlatformProvider
for the maven-surefire-plugin:3.0.0-M5
reinitializes the entire JUnit Platform Launcher for every class when running with forkCount
> 1. I've created this ticket at Surefire: https://issues.apache.org/jira/browse/SUREFIRE-1935 .
Issue Overview
After migration from JUnit4 to JUnit5 only first test passes. All following tests fails on startup exception, because there is lready GlassFishRuntime present and cannot be initialized again.
Expected Behaviour
Container is started and stopped once.
Current Behaviour
Each test class attempts to set up environment and only first test class pass.
Steps To Reproduce
Run multiple test classes in IntelliJ.
Additional Information