Problem running tests with enabled preview features in surefire and failsafeMaven surefire and JDK 11Unable to load mojo plugin, A required class is missingmaven failsafe -Dtest reports written to surefire=reports folderMaven failsafe: followed guide, but does not run on “verify”Surefire doesn't run PowerMock testMaven build fails with error message Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)Maven [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:testExecution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked processMaven archetype: org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerExceptionWSO2 maven build faild with version mvn 3.0.5-17 - test plugging issueGroovyc and Java 12 preview feature

What is the term for a person whose job is to place products on shelves in stores?

All ASCII characters with a given bit count

Injection into a proper class and choice without regularity

Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?

How can I practically buy stocks?

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

How long after the last departure shall the airport stay open for an emergency return?

Multiple fireplaces in an apartment building?

How to pronounce 'c++' in Spanish

SFDX - Create Objects with Custom Properties

How do I produce this Greek letter koppa: Ϟ in pdfLaTeX?

What does a straight horizontal line above a few notes, after a changed tempo mean?

Co-worker works way more than he should

Unknown code in script

Could moose/elk survive in the Amazon forest?

Contradiction proof for inequality of P and NP?

Extracting Dirichlet series coefficients

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Why must Chinese maps be obfuscated?

Restricting the options of a lookup field, based on the value of another lookup field?

Why do distances seem to matter in the Foundation world?

What is the unit of time_lock_delta in LND?

Philosophical question on logistic regression: why isn't the optimal threshold value trained?

A Paper Record is What I Hamper



Problem running tests with enabled preview features in surefire and failsafe


Maven surefire and JDK 11Unable to load mojo plugin, A required class is missingmaven failsafe -Dtest reports written to surefire=reports folderMaven failsafe: followed guide, but does not run on “verify”Surefire doesn't run PowerMock testMaven build fails with error message Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)Maven [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:testExecution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked processMaven archetype: org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerExceptionWSO2 maven build faild with version mvn 3.0.5-17 - test plugging issueGroovyc and Java 12 preview feature






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








8















I'm trying to migrate a project to Java 12, with --enable-preview.



I added --enable-preview in compiler settings:



 <plugin> 
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>12</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>


And also added it in argLine for surefire and failsafe:



<properties> 
<argLine>--enable-preview</argLine>
</properties>


And do a mvn clean verify results in:



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project lombok-jdk10: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/kirela/lombok/BarTest (class file version 56.65535). Try running with '--enable-preview' -> [Help 1]


I also tried adding argLine directly to surefire/failsafe configuration, but the result is same.



What am I missing here?



I this a bug in surefire/failsafe?



EDIT2: Surefire and failsafe config:



 <plugin> 
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>


EDIT3:
Minimal working example is here: https://github.com/krzyk/lombok-jdk10-example



The project fails with --enable-preview, but works when I remove it.










share|improve this question
























  • Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

    – Naman
    Mar 22 at 16:27











  • What is the values of maven.compiler.source and maven.compiler.target properties?

    – Izbassar Tolegen
    Mar 22 at 16:35











  • @IzbassarTolegen Both are 12

    – Krzysztof Krasoń
    Mar 22 at 16:45











  • Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

    – user944849
    Mar 22 at 17:16






  • 2





    Actually there is no such version in central, and I need to use it, the highest is M3

    – Krzysztof Krasoń
    Mar 22 at 17:41

















8















I'm trying to migrate a project to Java 12, with --enable-preview.



I added --enable-preview in compiler settings:



 <plugin> 
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>12</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>


And also added it in argLine for surefire and failsafe:



<properties> 
<argLine>--enable-preview</argLine>
</properties>


And do a mvn clean verify results in:



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project lombok-jdk10: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/kirela/lombok/BarTest (class file version 56.65535). Try running with '--enable-preview' -> [Help 1]


I also tried adding argLine directly to surefire/failsafe configuration, but the result is same.



What am I missing here?



I this a bug in surefire/failsafe?



EDIT2: Surefire and failsafe config:



 <plugin> 
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>


EDIT3:
Minimal working example is here: https://github.com/krzyk/lombok-jdk10-example



The project fails with --enable-preview, but works when I remove it.










share|improve this question
























  • Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

    – Naman
    Mar 22 at 16:27











  • What is the values of maven.compiler.source and maven.compiler.target properties?

    – Izbassar Tolegen
    Mar 22 at 16:35











  • @IzbassarTolegen Both are 12

    – Krzysztof Krasoń
    Mar 22 at 16:45











  • Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

    – user944849
    Mar 22 at 17:16






  • 2





    Actually there is no such version in central, and I need to use it, the highest is M3

    – Krzysztof Krasoń
    Mar 22 at 17:41













8












8








8


1






I'm trying to migrate a project to Java 12, with --enable-preview.



I added --enable-preview in compiler settings:



 <plugin> 
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>12</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>


And also added it in argLine for surefire and failsafe:



<properties> 
<argLine>--enable-preview</argLine>
</properties>


And do a mvn clean verify results in:



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project lombok-jdk10: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/kirela/lombok/BarTest (class file version 56.65535). Try running with '--enable-preview' -> [Help 1]


I also tried adding argLine directly to surefire/failsafe configuration, but the result is same.



What am I missing here?



I this a bug in surefire/failsafe?



EDIT2: Surefire and failsafe config:



 <plugin> 
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>


EDIT3:
Minimal working example is here: https://github.com/krzyk/lombok-jdk10-example



The project fails with --enable-preview, but works when I remove it.










share|improve this question
















I'm trying to migrate a project to Java 12, with --enable-preview.



I added --enable-preview in compiler settings:



 <plugin> 
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>12</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>


And also added it in argLine for surefire and failsafe:



<properties> 
<argLine>--enable-preview</argLine>
</properties>


And do a mvn clean verify results in:



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project lombok-jdk10: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/kirela/lombok/BarTest (class file version 56.65535). Try running with '--enable-preview' -> [Help 1]


I also tried adding argLine directly to surefire/failsafe configuration, but the result is same.



What am I missing here?



I this a bug in surefire/failsafe?



EDIT2: Surefire and failsafe config:



 <plugin> 
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>


EDIT3:
Minimal working example is here: https://github.com/krzyk/lombok-jdk10-example



The project fails with --enable-preview, but works when I remove it.







java maven maven-surefire-plugin maven-failsafe-plugin java-12






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 22 at 7:13







Krzysztof Krasoń

















asked Mar 22 at 16:19









Krzysztof KrasońKrzysztof Krasoń

16.2k106285




16.2k106285












  • Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

    – Naman
    Mar 22 at 16:27











  • What is the values of maven.compiler.source and maven.compiler.target properties?

    – Izbassar Tolegen
    Mar 22 at 16:35











  • @IzbassarTolegen Both are 12

    – Krzysztof Krasoń
    Mar 22 at 16:45











  • Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

    – user944849
    Mar 22 at 17:16






  • 2





    Actually there is no such version in central, and I need to use it, the highest is M3

    – Krzysztof Krasoń
    Mar 22 at 17:41

















  • Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

    – Naman
    Mar 22 at 16:27











  • What is the values of maven.compiler.source and maven.compiler.target properties?

    – Izbassar Tolegen
    Mar 22 at 16:35











  • @IzbassarTolegen Both are 12

    – Krzysztof Krasoń
    Mar 22 at 16:45











  • Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

    – user944849
    Mar 22 at 17:16






  • 2





    Actually there is no such version in central, and I need to use it, the highest is M3

    – Krzysztof Krasoń
    Mar 22 at 17:41
















Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

– Naman
Mar 22 at 16:27





Would be helpful to file an issue with debug logs which would include the exact command line equivalent of what surefire is trying to run.

– Naman
Mar 22 at 16:27













What is the values of maven.compiler.source and maven.compiler.target properties?

– Izbassar Tolegen
Mar 22 at 16:35





What is the values of maven.compiler.source and maven.compiler.target properties?

– Izbassar Tolegen
Mar 22 at 16:35













@IzbassarTolegen Both are 12

– Krzysztof Krasoń
Mar 22 at 16:45





@IzbassarTolegen Both are 12

– Krzysztof Krasoń
Mar 22 at 16:45













Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

– user944849
Mar 22 at 17:16





Looks like there is a version 3.0.0-M6 of the surefire plugins now, does that make any difference?

– user944849
Mar 22 at 17:16




2




2





Actually there is no such version in central, and I need to use it, the highest is M3

– Krzysztof Krasoń
Mar 22 at 17:41





Actually there is no such version in central, and I need to use it, the highest is M3

– Krzysztof Krasoń
Mar 22 at 17:41












1 Answer
1






active

oldest

votes


















4














There are two solutions:



Add --enable-preview to MAVEN_OPTS environment variable.



Explanation by the maintainer of surefire:




The argLine does what it has to do without any issue.
The plugin runs JUnit filter which finally selects relevant classes to run in one or multiple JVMs.
So the JUnit engine runs twice. Once in plugin JVM, and second in the forked JVM.



Due to the classes are compiled with different major or minor version (in bytecode of *.class files) than the version of Java runtime supports in Maven, this JRE fails because Java in Maven does not understand the bytecode. So, it is curious that the same JVM (javac) produced two major versions depending on JVM option and java from the same JVM does not understand it been incompatible for itself. Although version in forked JVM is totally fine and understands the the classes compiled by javac because javac and forked JVM start with the same option --enable-preview.
It is the same situation as if you compiled your sources with Java 12 by maven-compiler-plugin using the toolchain and run the whole Maven build with Java 11. So the classes would be compiled with higher version (in bytecode) than the JRE could understand in Maven process.




We have a wish to rework providers and perform the filtering inside of the forked JVM but this is very compilicated change and still questionary.



The issue is that I used forkCount, it appears surefire doesn't pass parameters to JVM run in fork.



Remove the forkCount parameter from surefire/failsafe configuration.



This will of course cause the tests to run in a single JVM, so if you wanted to speed up the tests using the forks, it won't work now.






share|improve this answer

























  • Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

    – Naman
    Mar 25 at 3:35






  • 1





    OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

    – Krzysztof Krasoń
    Mar 25 at 7:35











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55303837%2fproblem-running-tests-with-enabled-preview-features-in-surefire-and-failsafe%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














There are two solutions:



Add --enable-preview to MAVEN_OPTS environment variable.



Explanation by the maintainer of surefire:




The argLine does what it has to do without any issue.
The plugin runs JUnit filter which finally selects relevant classes to run in one or multiple JVMs.
So the JUnit engine runs twice. Once in plugin JVM, and second in the forked JVM.



Due to the classes are compiled with different major or minor version (in bytecode of *.class files) than the version of Java runtime supports in Maven, this JRE fails because Java in Maven does not understand the bytecode. So, it is curious that the same JVM (javac) produced two major versions depending on JVM option and java from the same JVM does not understand it been incompatible for itself. Although version in forked JVM is totally fine and understands the the classes compiled by javac because javac and forked JVM start with the same option --enable-preview.
It is the same situation as if you compiled your sources with Java 12 by maven-compiler-plugin using the toolchain and run the whole Maven build with Java 11. So the classes would be compiled with higher version (in bytecode) than the JRE could understand in Maven process.




We have a wish to rework providers and perform the filtering inside of the forked JVM but this is very compilicated change and still questionary.



The issue is that I used forkCount, it appears surefire doesn't pass parameters to JVM run in fork.



Remove the forkCount parameter from surefire/failsafe configuration.



This will of course cause the tests to run in a single JVM, so if you wanted to speed up the tests using the forks, it won't work now.






share|improve this answer

























  • Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

    – Naman
    Mar 25 at 3:35






  • 1





    OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

    – Krzysztof Krasoń
    Mar 25 at 7:35















4














There are two solutions:



Add --enable-preview to MAVEN_OPTS environment variable.



Explanation by the maintainer of surefire:




The argLine does what it has to do without any issue.
The plugin runs JUnit filter which finally selects relevant classes to run in one or multiple JVMs.
So the JUnit engine runs twice. Once in plugin JVM, and second in the forked JVM.



Due to the classes are compiled with different major or minor version (in bytecode of *.class files) than the version of Java runtime supports in Maven, this JRE fails because Java in Maven does not understand the bytecode. So, it is curious that the same JVM (javac) produced two major versions depending on JVM option and java from the same JVM does not understand it been incompatible for itself. Although version in forked JVM is totally fine and understands the the classes compiled by javac because javac and forked JVM start with the same option --enable-preview.
It is the same situation as if you compiled your sources with Java 12 by maven-compiler-plugin using the toolchain and run the whole Maven build with Java 11. So the classes would be compiled with higher version (in bytecode) than the JRE could understand in Maven process.




We have a wish to rework providers and perform the filtering inside of the forked JVM but this is very compilicated change and still questionary.



The issue is that I used forkCount, it appears surefire doesn't pass parameters to JVM run in fork.



Remove the forkCount parameter from surefire/failsafe configuration.



This will of course cause the tests to run in a single JVM, so if you wanted to speed up the tests using the forks, it won't work now.






share|improve this answer

























  • Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

    – Naman
    Mar 25 at 3:35






  • 1





    OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

    – Krzysztof Krasoń
    Mar 25 at 7:35













4












4








4







There are two solutions:



Add --enable-preview to MAVEN_OPTS environment variable.



Explanation by the maintainer of surefire:




The argLine does what it has to do without any issue.
The plugin runs JUnit filter which finally selects relevant classes to run in one or multiple JVMs.
So the JUnit engine runs twice. Once in plugin JVM, and second in the forked JVM.



Due to the classes are compiled with different major or minor version (in bytecode of *.class files) than the version of Java runtime supports in Maven, this JRE fails because Java in Maven does not understand the bytecode. So, it is curious that the same JVM (javac) produced two major versions depending on JVM option and java from the same JVM does not understand it been incompatible for itself. Although version in forked JVM is totally fine and understands the the classes compiled by javac because javac and forked JVM start with the same option --enable-preview.
It is the same situation as if you compiled your sources with Java 12 by maven-compiler-plugin using the toolchain and run the whole Maven build with Java 11. So the classes would be compiled with higher version (in bytecode) than the JRE could understand in Maven process.




We have a wish to rework providers and perform the filtering inside of the forked JVM but this is very compilicated change and still questionary.



The issue is that I used forkCount, it appears surefire doesn't pass parameters to JVM run in fork.



Remove the forkCount parameter from surefire/failsafe configuration.



This will of course cause the tests to run in a single JVM, so if you wanted to speed up the tests using the forks, it won't work now.






share|improve this answer















There are two solutions:



Add --enable-preview to MAVEN_OPTS environment variable.



Explanation by the maintainer of surefire:




The argLine does what it has to do without any issue.
The plugin runs JUnit filter which finally selects relevant classes to run in one or multiple JVMs.
So the JUnit engine runs twice. Once in plugin JVM, and second in the forked JVM.



Due to the classes are compiled with different major or minor version (in bytecode of *.class files) than the version of Java runtime supports in Maven, this JRE fails because Java in Maven does not understand the bytecode. So, it is curious that the same JVM (javac) produced two major versions depending on JVM option and java from the same JVM does not understand it been incompatible for itself. Although version in forked JVM is totally fine and understands the the classes compiled by javac because javac and forked JVM start with the same option --enable-preview.
It is the same situation as if you compiled your sources with Java 12 by maven-compiler-plugin using the toolchain and run the whole Maven build with Java 11. So the classes would be compiled with higher version (in bytecode) than the JRE could understand in Maven process.




We have a wish to rework providers and perform the filtering inside of the forked JVM but this is very compilicated change and still questionary.



The issue is that I used forkCount, it appears surefire doesn't pass parameters to JVM run in fork.



Remove the forkCount parameter from surefire/failsafe configuration.



This will of course cause the tests to run in a single JVM, so if you wanted to speed up the tests using the forks, it won't work now.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 22 at 7:13

























answered Mar 23 at 8:30









Krzysztof KrasońKrzysztof Krasoń

16.2k106285




16.2k106285












  • Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

    – Naman
    Mar 25 at 3:35






  • 1





    OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

    – Krzysztof Krasoń
    Mar 25 at 7:35

















  • Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

    – Naman
    Mar 25 at 3:35






  • 1





    OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

    – Krzysztof Krasoń
    Mar 25 at 7:35
















Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

– Naman
Mar 25 at 3:35





Maybe forkCount set to 0 could help as well. There was a similar issue possibly reported - SUREFIRE-1528.

– Naman
Mar 25 at 3:35




1




1





OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

– Krzysztof Krasoń
Mar 25 at 7:35





OK, but still doesn't solve my issue, I want fork count to be 1 per cpu core (1C), I can disable forking but that slowes my tests.

– Krzysztof Krasoń
Mar 25 at 7:35



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55303837%2fproblem-running-tests-with-enabled-preview-features-in-surefire-and-failsafe%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript