You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/03/11 10:28:00 UTC

[jira] [Commented] (MNG-7113) config maven to mark “running test” as ERROR when some tests are skipped

    [ https://issues.apache.org/jira/browse/MNG-7113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17299475#comment-17299475 ] 

Michael Osipov commented on MNG-7113:
-------------------------------------

Have you looked that Surefire Plugin offers? Most of them are already available.

> config maven to mark “running test” as ERROR when some tests are skipped
> ------------------------------------------------------------------------
>
>                 Key: MNG-7113
>                 URL: https://issues.apache.org/jira/browse/MNG-7113
>             Project: Maven
>          Issue Type: New Feature
>            Reporter: Jan
>            Priority: Minor
>
> As a tester/developer I would like to have a flag in maven to set final verdict of running tests to ERROR when some tests has been skipped.
> Flag name proposal:
> markBuildAsErrorWhenAnyTestSkipped
> Example using:
> mvn test -DmarkBuildAsErrorWhenAnyTestSkipped=false
>  
> {noformat}
> [WARNING] Tests run: 1423, Failures: 0, Errors: 0, **Skipped: 3,** Time elapsed: 149.449 s - in TestSuite
> [INFO] 
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 1423, Failures: 0, Errors: 0, Skipped: 3
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] **BUILD SUCCESS**
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  02:55 min
> [INFO] Finished at: 2021-03-10T13:12:35+01:00
> [INFO] ------------------------------------------------------------------------{noformat}
> mvn test -DmarkBuildAsErrorWhenAnyTestSkipped=true
>  
> {noformat}
> [WARNING] Tests run: 1423, Failures: 0, Errors: 0, **Skipped: 3,** Time elapsed: 149.449 s - in TestSuite
> [INFO] 
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 1423, Failures: 0, Errors: 0, Skipped: 3
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] **BUILD ERROR**
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  02:55 min
> [INFO] Finished at: 2021-03-10T13:12:35+01:00
> [INFO] ------------------------------------------------------------------------{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)