maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Turski (JIRA)" <>
Subject [jira] [Commented] (SUREFIRE-1305) surefire fails on parallel tests when newline character is in test description
Date Sun, 20 Nov 2016 22:11:00 GMT


Piotr Turski commented on SUREFIRE-1305:

still a bug. i took the project that reproduces the issue, added:
and changed version to
and after running tests:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building playground 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ playground ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /xxxxxxxxx/zohhak_parallel_bug/src/main/resources
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ playground ---
[INFO] No sources to compile
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ playground ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /xxxxxxxx/zohhak_parallel_bug/src/test/resources
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ playground ---
[INFO] Nothing to compile - all classes are up to date
[INFO] --- maven-surefire-plugin:2.19.2-SNAPSHOT:test (default-test) @ playground ---
[INFO] -------------------------------------------------------
[INFO] -------------------------------------------------------
[INFO] Running testMethod
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in testMethod
[INFO] Results:
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.240s
[INFO] Finished at: Sun Nov 20 23:01:58 CET 2016
[INFO] Final Memory: 11M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.2-SNAPSHOT:test
(default-test) on project playground: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.2-SNAPSHOT:test
failed: There was an error in the forked process
[ERROR] org.apache.maven.surefire.testset.TestSetFailedException: Test mechanism :: null
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(
[ERROR] Caused by: java.lang.NullPointerException
[ERROR] at org.apache.maven.surefire.junitcore.ConcurrentRunListener.testStarting(
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.testStarted(
[ERROR] at org.junit.runner.notification.SynchronizedRunListener.testStarted(
[ERROR] at org.junit.runner.notification.RunNotifier$3.notifyListener(
[ERROR] at org.junit.runner.notification.RunNotifier$
[ERROR] at org.junit.runner.notification.RunNotifier.fireTestStarted(
[ERROR] at org.apache.maven.surefire.common.junit4.Notifier.fireTestStarted(
[ERROR] at org.junit.internal.runners.model.EachTestNotifier.fireTestStarted(
[ERROR] at org.junit.runners.ParentRunner.runLeaf(
[ERROR] at org.junit.runners.BlockJUnit4ClassRunner.runChild(
[ERROR] at org.junit.runners.BlockJUnit4ClassRunner.runChild(
[ERROR] at org.junit.runners.ParentRunner$
[ERROR] at org.apache.maven.surefire.junitcore.pc.Scheduler$
[ERROR] at java.util.concurrent.Executors$
[ERROR] at
[ERROR] at java.util.concurrent.ThreadPoolExecutor.runWorker(
[ERROR] at java.util.concurrent.ThreadPoolExecutor$
[ERROR] at
[ERROR] -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following
[ERROR] [Help 1]

Process finished with exit code 1


> surefire fails on parallel tests when newline character is in test description
> ------------------------------------------------------------------------------
>                 Key: SUREFIRE-1305
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.19.1
>            Reporter: Piotr Turski
>            Assignee: Tibor Digana
> zohhak runner may create test description with newline character in it. it runs without
any problem with surefire and non-parallel build and with parallel build when there is no
newline char in the description. furthermore it runs fine with plain junit in parallel mode
> * original issue was reported here:
> * project that reproduces the issue:
> * working parallel junit tests without surefire:

This message was sent by Atlassian JIRA

View raw message