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

Tibor Digana commented on SUREFIRE-2013:
----------------------------------------

[~turing85]
{{testSourceDirectory}} has no real meaning.
It is currently used only in TestNG HTML reports.

Anyway, the sources do not matter. The only important is the byte code and thus 
the standard path *target/test-classes* and the content.
If you use <include>**/*.java</include>, then of course everything is executed 
what appears in *target/test-classes*.

You can help us to fix the Javadoc of the MOJO parameter and the documentation 
where [the first 
sentence|https://github.com/apache/maven-surefire/blob/master/maven-surefire-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm#L214]
 should be deleted..

In order to filter tests use:
1. -Dit.test=...
2. <includes>
3. <includeFiles>


> property testSourceDirectory does not work as expected/intended
> ---------------------------------------------------------------
>
>                 Key: SUREFIRE-2013
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2013
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support, Maven Failsafe Plugin, Maven Surefire 
> Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Marco Bungart
>            Priority: Minor
>
> h3. Expected behaviour:
> According to [the 
> documentation|https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html],
>  when we set the property {{testSourceDirectory}}, only tests in the 
> specified directory should be executed.
> h3. Actual behaviour:
> All tests are executed
> h3. Reproducer:
> Can be found in [this bitbucket 
> repository|https://bitbucket.org/turing85/surefire-failsafe-bug]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to