You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2019/09/10 13:14:00 UTC

[jira] [Commented] (SUREFIRE-1694) Surefire silently skips tests in presence of transitive dependency

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

Tibor Digana commented on SUREFIRE-1694:
----------------------------------------

[~allenevans]
I cannot say what you are doing wrong because I do not see your sources but I have to say that we do not call {{maven-dependency-plugin}} in Surefire. It looks like parallel execution but it cannot be in principle.

> Surefire silently skips tests in presence of transitive dependency
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-1694
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1694
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.22.2
>            Reporter: Allen Evans
>            Priority: Blocker
>
> In a multi-module project, one module "functional-tests" contains a test suite that tests the whole application.
> Usually, running mvn verify will run the tests in this module.
> {code:java}
> [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ functional-tests ---
> [WARNING] file.encoding cannot be set as system property, use <argLine>-Dfile.encoding=...</argLine> instead
> [INFO]
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> ...{code}
> Recently, I added a dependency (io.vertx:vertx-config-git) to the pom.xml of one of my project's modules "config", and now mvn verify breezes through the functional-tests module without running any of the tests, and without logging anything noteworthy (even with the -X flag)
> {code:java}
> [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ functional-tests ---
> [INFO]
> [INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) @ functional-tests ---
> ...{code}
>  
> After adding a dependency:exclusion tag to the pom.xml of the "config" module that excludes a particular transitive dependency from vertx-config-git (org.eclipse.jgit:org.eclipse.jgit), the tests work as before. Obviously this is not a solution, but it seems to narrow down the problem. 
> Is it likely that my issue is caused by the presence of org.eclipse.jgit in my dependency tree? This seems counterintuitive.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)