maven-surefire-plugin

Getting an Exception when running tests in parallel using testng, mavensurefire plugin and cucumber jvm

拥有回忆 提交于 2019-12-11 15:26:37
问题 I am trying to execute cucumber feature files in parallel by automatically generating test runners using cucumber-jvm plugin and running them parallel using maven-surefire plugin. When running the command "mvn clean test" i am getting the below errors Below is my POM.xml, testng.xml file and testRunners. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="Suite" parallel="tests"> <!-- how many scenarios we can execute at a time is

Cucumber-Jvm produces empty Json file when any of the test Fails

纵然是瞬间 提交于 2019-12-11 11:29:29
问题 I have about 50 feature files running on Jenkin Server and it produces .JSON file which will be fed into Cucumber Pie chart generator. Jenkin produces file when All Tests Succeeds, and produces Pie chart as well When any of the Test Step fails , It generates file with zero size (empty file) My project is setup using surefire plug in...I dont know if that matters... Thanks 回答1: The Way Cucumber exits..... //System.exit(stats.hadErrors() || stats.hadFailures() ? 1 : 0); System.exit(0); 来源:

Skip report generation using TestNG and sure-fire plugin

自闭症网瘾萝莉.ら 提交于 2019-12-11 09:42:47
问题 I am new to TestNG framework. I don't want to generate reports using sure-fire plugin, is there any option to disable this. I also prefer to stop report generation using TestNG framework. In current situation, same report is getting generated 2 times, once by sure-fire plugin (under target directory) and once by TestNG framework (under test-output directory). Also, like if you could suggest some good tutorial on customizing the reports. The current reports are just too verbose. This is how I

What versions of cobertura and surefire plugins work together under maven3?

。_饼干妹妹 提交于 2019-12-11 09:37:02
问题 What versions of cobertura and surefire plugins work together under maven3 ? After switching to maven3 I've found out, that mvn cobertura:cobertura is no longer generating report about test coverage (the coverage displayed is 0%). It was working under maven2... However, after finding, that in one of the other projects reports are still working, I've analysed the effective pom. After finding out I was using other versions of plugins, I've downgraded maven-surefire-plugin from version 2.8 to 2

Jenkins Publish TestNG Results not working

会有一股神秘感。 提交于 2019-12-11 09:35:36
问题 I am running Jenkins 1.571 . I am building my project with a pom.xml . I have two executions of maven-surefire-plugin to execute two testng suites in a forked mode. But Jenkins build#/testReport page shows test results for only first suite. Build logs show test cases from both suites are successfully executed. I want to include results from both suites into report, so I added Publish TestNG Results plug-in, but that doesn't show any results at all. Any idea on what I might be missing? In my

How can I fire integration tests separately using failsafe-plugin?

天涯浪子 提交于 2019-12-11 09:34:05
问题 I cannot run integration tests, but only unit tests. Here is my Maven config (see code below). It uses two plugins. One of them is maven-failsafe-plugin and the second one is maven-surefire-plugin . <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <skipTests>false</skipTests> <skipITs>${skipTests}</skipITs> <skipUTs>${skipTests}</skipUTs> </properties> <dependencies> <dependency> <groupId

Tycho skips Tests

孤街浪徒 提交于 2019-12-11 08:03:32
问题 My project uses maven to build, but during install it always skips the tests. If i use -X it tells me: [DEBUG] (f) skipTests = true Where does this come from? This is my pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>project</artifactId> <packaging>eclipse-test-plugin</packaging>

Maven silently fails to find JUnit tests to run

天大地大妈咪最大 提交于 2019-12-11 07:47:32
问题 I've got a new Java project open in IntelliJ with Maven as its build tool, with one class and one JUnit 5 test class at the moment. When I direct IntelliJ to run tests, individually or all together, it works. But when I go to the terminal and hit mvn clean test or do the same from the Maven pane within IntelliJ, it skips over the tests. Unlike the questioner with this similar question, however, I'm not getting any error message. The test class is found and does compile. I do not have the same

Is there a way to load Maven Surefire Plugin exclusions list from a file?

谁都会走 提交于 2019-12-11 07:01:25
问题 In the Surefire plugin, you have have an exclusions list of files (or regex) like this: <project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> <excludes> <exclude>**/TestCircle.java</exclude> <exclude>**/TestSquare.java</exclude> </excludes> </configuration> </plugin> </plugins> </build> [...] </project> I want to add a bunch of files to my exclusions list that don't match

surefire-plugin does not respect threadCount parameter

回眸只為那壹抹淺笑 提交于 2019-12-11 03:21:49
问题 Since several days, I tried to see where is my mistake in my configuration to run in parallel my Selenium tests. I have a Selenium Grid with 2 nodes. In my pom.xml, I have set surefire to run 2 by 2 the methods of my tests with a particular category then other tests. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <executions> <execution> <id>default-test</id> <goals> <goal>test</goal> </goals>