The debug output is quite huge, so I won't put it here. What in particular shall I lookup inside of that? The environment is:
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00) Maven home: C:\Program Files\apache-maven-3.6.1 Java version: 1.8.0_212, vendor: Azul Systems, Inc., runtime: C:\Program Files\zulu8.38.0.13-ca-jdk8.0.212-win_x64\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows" ... [DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <additionalClasspathElements>${maven.test.additionalClasspath}</additionalCl asspathElements> <argLine>-Xmx384m</argLine> <basedir default-value="${basedir}"/> <childDelegation default-value="false">${childDelegation}</childDelegation> <classesDirectory default-value="${project.build.outputDirectory}"/> <classpathDependencyExcludes>${maven.test.dependency.excludes}</classpathDep endencyExcludes> <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess> <dependenciesToScan>${dependenciesToScan}</dependenciesToScan> <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport> <enableAssertions default-value="true">${enableAssertions}</enableAssertions> <encoding default-value="${project.reporting.outputEncoding}">${surefire.encoding}</en coding> <environmentVariables> <JENKINS_MAVEN_AGENT_DISABLED>true</JENKINS_MAVEN_AGENT_DISABLED> </environmentVariables> <excludedGroups>${excludedGroups}</excludedGroups> <excludesFile>${surefire.excludesFile}</excludesFile> <failIfNoSpecifiedTests>${surefire.failIfNoSpecifiedTests}</failIfNoSpecifie dTests> <failIfNoTests>${failIfNoTests}</failIfNoTests> <forkCount default-value="1">${forkCount}</forkCount> <forkMode default-value="once">${forkMode}</forkMode> <forkedProcessExitTimeoutInSeconds default-value="30">${surefire.exitTimeout}</forkedProcessExitTimeoutInSecond s> <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSe conds> <groups>${groups}</groups> <includesFile>${surefire.includesFile}</includesFile> <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName> <junitPlatformArtifactName default-value="org.junit.platform:junit-platform-engine">${junitPlatformArti factName}</junitPlatformArtifactName> <jvm>${jvm}</jvm> <localRepository default-value="${localRepository}"/> <objectFactory>${objectFactory}</objectFactory> <parallel>${parallel}</parallel> <parallelMavenExecution default-value="${session.parallel}"/> <parallelOptimized default-value="true">${parallelOptimized}</parallelOptimized> <parallelTestsTimeoutForcedInSeconds>${surefire.parallel.forcedTimeout}</par allelTestsTimeoutForcedInSeconds> <parallelTestsTimeoutInSeconds>${surefire.parallel.timeout}</parallelTestsTi meoutInSeconds> <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount> <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap> <pluginDescriptor default-value="${plugin}"/> <printSummary default-value="true">${surefire.printSummary}</printSummary> <projectArtifactMap>${project.artifactMap}</projectArtifactMap> <projectBuildDirectory default-value="${project.build.directory}"/> <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOu tputToFile> <remoteRepositories default-value="${project.pluginArtifactRepositories}"/> <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat> <reportNameSuffix default-value="">${surefire.reportNameSuffix}</reportNameSuffix> <reportsDirectory default-value="${project.build.directory}/surefire-reports"/> <rerunFailingTestsCount default-value="0">${surefire.rerunFailingTestsCount}</rerunFailingTestsCount > <reuseForks default-value="true">${reuseForks}</reuseForks> <runOrder default-value="filesystem">${surefire.runOrder}</runOrder> <shutdown default-value="testset">${surefire.shutdown}</shutdown> <skip default-value="false">${maven.test.skip}</skip> <skipAfterFailureCount default-value="0">${surefire.skipAfterFailureCount}</skipAfterFailureCount> <skipExec>${maven.test.skip.exec}</skipExec> <skipTests default-value="false">${skipTests}</skipTests> <suiteXmlFiles>${surefire.suiteXmlFiles}</suiteXmlFiles> <systemPropertyVariables> <maven.home>C:\Program Files\apache-maven-3.6.1</maven.home> </systemPropertyVariables> <tempDir default-value="surefire">${tempDir}</tempDir> <test>${test}</test> <testClassesDirectory default-value="${project.build.testOutputDirectory}"/> <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore> <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName> <testSourceDirectory default-value="${project.build.testSourceDirectory}"/> <threadCount>${threadCount}</threadCount> <threadCountClasses default-value="0">${threadCountClasses}</threadCountClasses> <threadCountMethods default-value="0">${threadCountMethods}</threadCountMethods> <threadCountSuites default-value="0">${threadCountSuites}</threadCountSuites> <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace> <useFile default-value="true">${surefire.useFile}</useFile> <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar> <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader> <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads> <workingDirectory>${basedir}</workingDirectory> <project default-value="${project}"/> <session default-value="${session}"/> </configuration> ... [ERROR] testProofClaim(org.apache.maven.plugins.dependency.fromConfiguration.TestCop yMojo) Time elapsed: 0.146 s <<< ERROR! org.junit.AssumptionViolatedException: always skip at org.apache.maven.plugins.dependency.fromConfiguration.TestCopyMojo.testProof Claim(TestCopyMojo.java:76) ... IIUC, Maven debug doesn't contain any really specific information besides what I aready assumed: Surefire treats org.junit.AssumptionViolatedException as an error but not as a request to skip the test. This can be reproduced with this really simple test case: https://github.com/mkarg/maven-dependency-plugin/commit/af257d7987fc41ac4377 4d2dca60b201979d11a2 - as you can see, I just ask JUnit 4.13 to fail the assumptions, and JUnit CORRECTLY throws AssumptionViolatedException - but Maven seems to not specifically deal with it. -Markus -----Ursprüngliche Nachricht----- Von: Martin Gainty [mailto:mgai...@hotmail.com] Gesendet: Sonntag, 16. August 2020 14:24 An: Maven Developers List Betreff: Re: Assumption fail treated as unexcepted exception?! MG>below ________________________________ From: Markus KARG <mar...@headcrashing.eu> Sent: Sunday, August 16, 2020 7:40 AM To: dev@maven.apache.org <dev@maven.apache.org> Subject: Assumption fail treated as unexcepted exception?! Guys, I'm stuck with working on a new feature due to this, so I hope you can help me quickly: JUnit knows assumptions, assertions and exceptions. Failing assertions will FAIL tests (hence will fail maven builds). Failing assumptions will SKIP tests (hence will pass maven builds). Exceptions will ERROR tests (hence will break maven builds). Unfortunately today I noticed that assumptions actually ERROR test (hence fail builds) in Maven! (I simply added another test to maven dependency plugin which contains an always-failing assumption to proof the claim) [INFO] Results: [INFO] [ERROR] Errors: [ERROR] TestCopyMojo.proofClaim:274 ┐ AssumptionViolated always skip MG>get maven environment and debug information MG>mvn -e -X MG>also I know Junit 5.4.2 needs Hamcrest to be on classpath MG>can you tell us which version of Junit you are using? -Markus Karg ~gruss~ ~martin~ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org