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

Vincent Massol edited comment on SUREFIRE-1633 at 6/10/20, 5:20 PM:
--------------------------------------------------------------------

bq. Vincent Massol that's really weird (kkkkkkk). In your pom, you already 
tried to add (i know that would be considered by default, but just for 
disengagement):

If you mean adding this config for failsafe, I don't think it'll work since 
it's the surefire plugin that tries to interpret {{-Dit.test}} apparently.

EDIT: I did it for fun but it cannot work since it's surefire failing (wrongly 
since it shouldn't obey {{-Dit.test}}):

{noformat}
 mvn clean install -Dit.test=org.xwiki.wiki.test.ui.AllIT.NestedWikiTemplateIT*
...
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ 
xwiki-platform-wiki-test-docker ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  25.568 s
[INFO] Finished at: 2020-06-10T19:18:58+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
project xwiki-platform-wiki-test-docker: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
{noformat}



was (Author: vmassol):
bq. Vincent Massol that's really weird (kkkkkkk). In your pom, you already 
tried to add (i know that would be considered by default, but just for 
disengagement):

If you mean adding this config for failsafe, I don't think it'll work since 
it's the surefire plugin that tries to interpret {{-Dit.test}} apparently.

EDIT: I did it for fun but it cannot work since it's surefire failing (wrongly 
since it shouldn't obey {{-Dit.test}}):

{noformat}
 mvn clean install -Dtest=org.xwiki.wiki.test.ui.AllIT.NestedWikiTemplateIT*
...
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ 
xwiki-platform-wiki-test-docker ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  25.568 s
[INFO] Finished at: 2020-06-10T19:18:58+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
project xwiki-platform-wiki-test-docker: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
{noformat}


> [JUnit5 follow-up #1343] JUnit Jupiter @Nested tests do not run when 
> selecting enclosing class with Surefire
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1633
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1633
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support
>            Reporter: Christian Stein
>            Priority: Major
>             Fix For: Backlog
>
>
> https://github.com/junit-team/junit5/issues/1343



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

Reply via email to