maven-surefire-plugin

Maven surefire plugin not running tests after migrating from Spock 1.2 to 2.0-M2

送分小仙女□ 提交于 2020-05-30 11:44:38
问题 Working setup - Spock older version - 1.2-groovy-2.4 jdk version - 8 Maven surefire plugin version - 2.22.0 Maven version - 3.5.0 Migrated setup - Spock version - 2.0-M2-groovy-2.5 jdk version - 11 Maven surefire plugin version - 3.0.0-M4 Maven version - 3.6.3 MCVE - https://github.com/ajaydivakaran/spock_spike The intent of upgrading Spock was to make it compatible with jdk 11. The test class files are present in the target/test-classes folder but are not run. 回答1: Variant A: JUnit 4 + Spock

Maven surefire plugin not running tests after migrating from Spock 1.2 to 2.0-M2

扶醉桌前 提交于 2020-05-30 11:42:49
问题 Working setup - Spock older version - 1.2-groovy-2.4 jdk version - 8 Maven surefire plugin version - 2.22.0 Maven version - 3.5.0 Migrated setup - Spock version - 2.0-M2-groovy-2.5 jdk version - 11 Maven surefire plugin version - 3.0.0-M4 Maven version - 3.6.3 MCVE - https://github.com/ajaydivakaran/spock_spike The intent of upgrading Spock was to make it compatible with jdk 11. The test class files are present in the target/test-classes folder but are not run. 回答1: Variant A: JUnit 4 + Spock

Maven surefire plugin crahsing jvm on java 11 (Corrupted STDOUT by directly writing to native stream in forked JVM 1)

大兔子大兔子 提交于 2020-05-27 11:51:09
问题 Running a maven build using java 11, the build issues the following warning whilerunning tests: [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file /home/thomas/code/irdeto-control/fps-license-service/fps/target/surefire-reports/2019-04-11T14-05-32_318-jvmRun1.dumpstream ...followed by the following stderr output after the build fails: $ cat error.message [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire

Surefire Maven plugin: “Corrupted STDOUT by directly writing to native stream in forked JVM”

断了今生、忘了曾经 提交于 2020-05-24 20:09:04
问题 My JUnit tests are failing when running them through Maven and the Surefire plugin (version information below). I see the error message: Corrupted STDOUT by directly writing to native stream in forked JVM 4. See FAQ web page and the dump file C:\(...)\target\surefire-reports\2019-03-20T18-57-17_082-jvmRun4.dumpstream The FAQ page points out some possible reasons but I don't see how I can use this information to start solving this problem: Corrupted STDOUT by directly writing to native stream

Jacoco doesn't produce coverage reports

守給你的承諾、 提交于 2020-05-16 05:04:10
问题 I 'm using maven-sure fire plugin to execute tests and Jacoco plugin to generate the coverage reports. Jacoco does't provide coverage reports and instead fails with the debug log as shown here under. [INFO] --- jacoco-maven-plugin:0.8.0:report (jacoco-site) @ util --- [INFO] Skipping JaCoCo execution due to missing execution data file. Here is how the maven sure-fire plugin looks. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.2

How to change maven's Remote Repository URL in the NetBeans IDE (from http to https)?

馋奶兔 提交于 2020-05-07 06:23:06
问题 When trying to run a NetBeans project, I get the following error message: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project MyNetBeansProject: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 ()

How to change maven's Remote Repository URL in the NetBeans IDE (from http to https)?

ε祈祈猫儿з 提交于 2020-05-07 06:22:49
问题 When trying to run a NetBeans project, I get the following error message: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project MyNetBeansProject: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 ()

Unable to run testNG tests from maven

浪尽此生 提交于 2020-01-25 06:43:27
问题 I have a project that uses testng APIs to dynamically create testng.xml file, so using the main function of java my project works as expected, but if I run my project via maven using 'Run as->maven build' It looks like only the BeforeSuite and BeforeTest classes are running, but the actual tests aren't running. Here's my pom.xml file: <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1<