Skip to content

Exception: ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174 #2761

Description

@martinaldrin

TestNG Version

7.6.0

I have some bad news with last release 7.6.0, We tested a snapshot last week from master and that was working. But there seems to be a new commit in-between that affects us badly. non of the executions passed.

I expect it is related to this commit: d190ade

Seems that some tmp path is added infront of the path

argument: -xmlpathinjar suites/postrelease/emulator_wrat_postrelease.xml

Exception: 2022-05-18T08:44:26,315 ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174/suites/old_action_test_suites/rnc_action_regression_with_configurationdata.xml

Sample Test

package org.testng.sample;
import org.testng.annotations.Test;
public class XmlPathInJarTest {
		@Test
		public void test() {
			System.out.println("Test");
		}
}

Sample Suite

<suite name="MJE PostRelease test on G2Rbs" verbose="1">
    <test name="XmlPathInJarTest" preserve-order="true">
        <classes>
            <class name="org.testng.sample.XmlPathInJarTest" />
        </classes>
    </test>
</suite>

Command

java -classpath target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar org.testng.TestNG -testjar target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar suites/xmlpathinjarSuite.xml

TestNG 7.5 Output

Test

===============================================
MJE PostRelease test on G2Rbs
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
===============================================

TestNg 7.6.0 Output

bash-3.2$ java -classpath target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar org.testng.TestNG -testjar target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar suites/xmlpathinjarSuite.xml
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
13:10:47.078 [main] ERROR org.testng.TestNG - java.nio.file.NoSuchFileException: /var/folders/3l/qqzzwt655k16_hjq1gk_grl40000gp/T/testngXmlPathInJar-16857375091475056093/META-INF/maven/com.google.code.findbugs/jsr305/pom.xml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions