Julien Herr commented on SUREFIRE-1267:


`SoftAssert` is a way to make many assertions in one time.
It allows you to have all assertion feedbacks instead of having to run the same 
test many times.
And `sofAssert.assertAll()` is the method which will check all registered 

More details with http://beust.com/weblog/2012/07/29/reinventing-assertions/ or 

About the issue, I don't see why it is failing.

> Maven Surifire pluging fails with TesNG SoftAssert.
> ---------------------------------------------------
>                 Key: SUREFIRE-1267
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1267
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.19.1
>            Reporter: Sumit Sharma
> I am using Maven Surefire plugin with TestNG SoftAssert. When I am catching 
> any softassert in my Test case SureFire Plugin giving below error. I am using 
> sofAssert.assertAll() methode in my @Test Annotation.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 57.062 s
> [INFO] Finished at: 2016-08-01T16:30:26+05:30
> [INFO] Final Memory: 16M/220M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
> project Project: There are test failures.
> [ERROR] 
> [ERROR] Please refer to C:\MavenTestNG\Project\target\surefire-reports for 
> the individual test results.
> [ERROR] -> [Help 1]
> [ERROR] 
> [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] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

This message was sent by Atlassian JIRA

Reply via email to