Junit5 support
See original GitHub issueIs that issue for you?
[22:57:22]E: Step 4/4: pitest (Command Line) (5s)
[22:57:22]i: [Step 4/4] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_5' value='0.0']
[22:57:22] : [Step 4/4] Starting: E:\study\TeamCity\buildAgent\temp\agentTmp\custom_script4513790511060446848.cmd
[22:57:22] : [Step 4/4] in directory: E:\study\TeamCity\buildAgent\work\b81bd2d58675567
[22:57:25] : [Step 4/4] :compileJava UP-TO-DATE
[22:57:25] : [Step 4/4] :processResources UP-TO-DATE
[22:57:25] : [Step 4/4] :classes UP-TO-DATE
[22:57:25] : [Step 4/4] :compileTestJava UP-TO-DATE
[22:57:25] : [Step 4/4] :processTestResources UP-TO-DATE
[22:57:25] : [Step 4/4] :testClasses UP-TO-DATE
[22:57:26]W: [Step 4/4] 22:57:26 PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue.
[22:57:26]W: [Step 4/4] 22:57:26 PIT >> INFO : Sending 107 test classes to minion
[22:57:26]W: [Step 4/4] 22:57:26 PIT >> INFO : Sent tests to minion
[22:57:26]W: [Step 4/4] 22:57:26 PIT >> INFO : MINION : 22:57:26 PIT >> INFO : Checking environment
[22:57:26]W: [Step 4/4]
[22:57:26]W: [Step 4/4] 22:57:26 PIT >> INFO : MINION : lip 08, 2016 10:57:26 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:26]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:26]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
[22:57:27]W: [Step 4/4] WARNING: Class 'org.pojo.tester.assertion.AssertionErrorTest$MockOfAssertionError' could not be resolved
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
[22:57:27]W: [Step 4/4] INFO: Discovered TestEngines with IDs: [junit-jupiter]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : lip 08, 2016 10:57:27 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
[22:57:27]W: [Step 4/4] WARNING: Class 'org.pojo.tester.assertion.AssertionErrorTest$MockOfAssertionError' could not be resolved
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : 22:57:27 PIT >> SEVERE : Error calculating coverage. Process will exit.
[22:57:27]W: [Step 4/4] org.pitest.util.PitError: JUnit Jupiter
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] Please copy and paste the information and the complete stacktrace below when reporting an issue
[22:57:27]W: [Step 4/4] VM : Java HotSpot(TM) 64-Bit Server VM
[22:57:27]W: [Step 4/4] Vendor
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : : Oracle Corporation
[22:57:27]W: [Step 4/4] Version : 25.92-b14
[22:57:27]W: [Step 4/4] Uptime : 775
[22:57:27]W: [Step 4/4] Input ->
[22:57:27]W: [Step 4/4] 1 : -javaagent:E:\study\TeamCity\buildAgent\temp\buildTmp\1468011446165039291095250538736248591398183955901.jar
[22:57:27]W: [Step 4/4] 2 : -Dfile.encoding=windows-1250
[22:57:27]W: [Step 4/4] 3 : -Duser.country=PL
[22:57:27]W: [Step 4/4] 4 : -Duser.language=p
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : l
[22:57:27]W: [Step 4/4] 5 : -Duser.variant
[22:57:27]W: [Step 4/4] BootClassPathSupported : true
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
[22:57:27]W: [Step 4/4] at org.pitest.util.IsolationUtils.convertForClassLoader(IsolationUtils.java:102)
[22:57:27]W: [Step 4/4] at org.pitest.junit.JUnitCustomRunnerTestU
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : nitFinder.descriptionToTest(JUnitCustomRunnerTestUnitFinder.java:154)
[22:57:27]W: [Step 4/4] at org.pitest.junit.JUnitCustomRunnerTestUnitFinder.access$000(JUnitCustomRunnerTestUnitFinder.java:42)
[22:57:27]W: [Step 4/4] at org.pitest.junit.JUnitCustomRunnerTestUnitFinder$1.apply(JUnitCustomRunnerT
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : estUnitFinder.java:133)
[22:57:27]W: [Step 4/4] at org.pitest.junit.JUnitCustomRunnerTestUnitFinder$1.apply(JUnitCustomRunnerTestUnitFinder.java:129)
[22:57:27]W: [Step 4/4] at org.pitest.functional.FCollection.mapTo(FCollection.java:40)
[22:57:27]W: [Step 4/4] at org.pitest.functional.FCollection.map(FCollection.java:48
[22:57:27] : [Step 4/4] :pitest FAILED
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : )
[22:57:27]W: [Step 4/4] at org.pitest.functional.MutableList.map(MutableList.java:127)
[22:57:27]W: [Step 4/4] at org.pitest.functional.MutableList.map(MutableList.java:24)
[22:57:27]W: [Step 4/4] at org.pitest.junit.JUnitCustomRunnerTestUnitFinder.splitIntoFilteredUnits(JUnitCustomRunnerTestUnitFinder.java:123)
[22:57:27]W: [Step 4/4] at o
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : rg.pitest.junit.JUnitCustomRunnerTestUnitFinder.findTestUnits(JUnitCustomRunnerTestUnitFinder.java:58)
[22:57:27]W: [Step 4/4] at org.pitest.junit.CompoundTestUnitFinder.findTestUnits(CompoundTestUnitFinder.java:20)
[22:57:27]W: [Step 4/4] at org.pitest.junit.CompoundTestUnitFinder.findTestUnits(Com
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : poundTestUnitFinder.java:20)
[22:57:27]W: [Step 4/4] at org.pitest.testapi.execute.FindTestUnits.findTestUnits(FindTestUnits.java:57)
[22:57:27]W: [Step 4/4] at org.pitest.testapi.execute.FindTestUnits.getTestUnits(FindTestUnits.java:40)
[22:57:27]W: [Step 4/4] at org.pitest.testapi.execute.FindTestUnits.findTestUnitsFor
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> SEVERE : Coverage generator Minion exited abnormally due to UNKNOWN_ERROR
[22:57:27]W: [Step 4/4] Exception in thread "main" org.pitest.util.PitError: Coverage generation minion exited abnormally!
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] Please copy and paste the information and the complete stacktrace below when reporting an issue
[22:57:27]W: [Step 4/4] VM : Java HotSpot(TM) 64-Bit Server VM
[22:57:27]W: [Step 4/4] Vendor : Oracle Corporation
[22:57:27]W: [Step 4/4] Version : 25.92-b14
[22:57:27]W: [Step 4/4] Uptime : 1160
[22:57:27]W: [Step 4/4] Input ->
[22:57:27]W: [Step 4/4] 1 : -Dfile.encoding=windows-1250
[22:57:27]W: [Step 4/4] 2 : -Duser.country=PL
[22:57:27] : [Step 4/4]
[22:57:27]W: [Step 4/4] 3 : -Duser.language=pl
[22:57:27] : [Step 4/4] BUILD FAILED
[22:57:27]W: [Step 4/4] 4 : -Duser.variant
[22:57:27] : [Step 4/4]
[22:57:27]W: [Step 4/4] BootClassPathSupported : true
[22:57:27] : [Step 4/4] Total time: 4.57 secs
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] Please copy and paste the information and the complete stacktrace below when reporting an issue
[22:57:27]W: [Step 4/4] VM : Java HotSpot(TM) 64-Bit Server VM
[22:57:27]W: [Step 4/4] Vendor : Oracle Corporation
[22:57:27]W: [Step 4/4] Version : 25.92-b14
[22:57:27]W: [Step 4/4] Uptime : 1161
[22:57:27]W: [Step 4/4] Input ->
[22:57:27]W: [Step 4/4] 1 : -Dfile.encoding=windows-1250
[22:57:27]W: [Step 4/4] 2 : -Duser.country=PL
[22:57:27]W: [Step 4/4] 3 : -Duser.language=pl
[22:57:27]W: [Step 4/4] 4 : -Duser.variant
[22:57:27]W: [Step 4/4] BootClassPathSupported : true
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:103)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:49)
[22:57:27]W: [Step 4/4] at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:110)
[22:57:27]W: [Step 4/4] at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:103)
[22:57:27]W: [Step 4/4] at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:45)
[22:57:27]W: [Step 4/4] at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:76)
[22:57:27]W: [Step 4/4] at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)
[22:57:27]W: [Step 4/4] Caused by: org.pitest.util.PitError: Coverage generation minion exited abnormally!
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] Please copy and paste the information and the complete stacktrace below when reporting an issue
[22:57:27]W: [Step 4/4] VM : Java HotSpot(TM) 64-Bit Server VM
[22:57:27]W: [Step 4/4] Vendor : Oracle Corporation
[22:57:27]W: [Step 4/4] Version : 25.92-b14
[22:57:27]W: [Step 4/4] Uptime : 1160
[22:57:27]W: [Step 4/4] Input ->
[22:57:27]W: [Step 4/4] 1 : -Dfile.encoding=windows-1250
[22:57:27]W: [Step 4/4] 2 : -Duser.country=PL
[22:57:27]W: [Step 4/4] 3 : -Duser.language=pl
[22:57:27]W: [Step 4/4] 4 : -Duser.variant
[22:57:27]W: [Step 4/4] BootClassPathSupported : true
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.DefaultCoverageGenerator.gatherCoverageData(DefaultCoverageGenerator.java:142)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:87)
[22:57:27]W: [Step 4/4] ... 6 more
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : AllSuppliedClasses(FindTestUnits.java:29)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.CoverageMinion.discoverTests(CoverageMinion.java:148)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.CoverageMinion.getTestsFromParent(CoverageMinion.java:128)
[22:57:27]W: [Step 4/4] at org.pitest.coverage.execute.Co
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : verageMinion.main(CoverageMinion.java:79)
[22:57:27]W: [Step 4/4] Caused by: java.lang.ClassNotFoundException: JUnit Jupiter
[22:57:27]W: [Step 4/4] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[22:57:27]W: [Step 4/4] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[22:57:27]W: [Step 4/4] at sun.misc.Launcher$AppClass
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : Loader.loadClass(Launcher.java:331)
[22:57:27]W: [Step 4/4] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[22:57:27]W: [Step 4/4] at java.lang.Class.forName0(Native Method)
[22:57:27]W: [Step 4/4] at java.lang.Class.forName(Class.java:348)
[22:57:27]W: [Step 4/4] at org.pitest.util.IsolationUtils.convertForClassLoader(IsolationUtil
[22:57:27]W: [Step 4/4] 22:57:27 PIT >> INFO : MINION : s.java:100)
[22:57:27]W: [Step 4/4] ... 18 more
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] FAILURE: Build failed with an exception.
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] * What went wrong:
[22:57:27]W: [Step 4/4] Execution failed for task ':pitest'.
[22:57:27]W: [Step 4/4] > Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 1
[22:57:27]W: [Step 4/4]
[22:57:27]W: [Step 4/4] * Try:
[22:57:27]W: [Step 4/4] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[22:57:27]W: [Step 4/4] Process exited with code 1
[22:57:27]i: [Step 4/4] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_5' value='5129.0']
[22:57:27]E: [Step 4/4] Step pitest (Command Line) failed
Issue Analytics
- State:
- Created 7 years ago
- Comments:31 (13 by maintainers)
Top Results From Across the Web
JUnit 5
We ask you – our users – to support us so we can keep up the pace. We will continue our work on...
Read more >TestParameterInjector gets JUnit5 support
JUnit5 (Jupiter) support. At Google, we use JUnit4 exclusively, but some developers outside of Google have moved on to JUnit5 (Jupiter).
Read more >JUnit 5 | IntelliJ IDEA Documentation - JetBrains
In this tutorial, you will learn how to set up JUnit for your projects, create tests, and run them to see if your...
Read more >A Guide to JUnit 5 - Baeldung
The JUnit 5 version contains a number of exciting innovations, with the goal of supporting new features in Java 8 and above, ...
Read more >JUnit5 Tutorial - DigitalOcean
JUnit5 maven surefire provider to execute the unit tests where IDE does not have JUnit5 support (if IDE has support then this point...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just released an initial version of @tobiasstadler’s plugin to maven central.
https://github.com/pitest/pitest-junit5-plugin
This has been tested via maven against a couple of github projects using the juniper api without encountering any issues.
I created a plugin which is based on M3 that works for me. See https://github.com/tobiasstadler/pitest-junit5-plugin