mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testng: pass suite file path in order to get correct relative paths inside testng (IDEA-61429)
This commit is contained in:
+3
-9
@@ -293,15 +293,9 @@ public class TestNGConfiguration extends ModuleBasedConfiguration<JavaRunConfigu
|
||||
}
|
||||
else if (data.TEST_OBJECT.equals(TestType.SUITE.getType())) {
|
||||
try {
|
||||
FileInputStream in = new FileInputStream(data.getSuiteName());
|
||||
try {
|
||||
final Parser parser = new Parser(in);
|
||||
parser.setLoadClasses(false);
|
||||
parser.parse();//try to parse suite.xml
|
||||
}
|
||||
finally {
|
||||
in.close();
|
||||
}
|
||||
final Parser parser = new Parser(data.getSuiteName());
|
||||
parser.setLoadClasses(false);
|
||||
parser.parse();//try to parse suite.xml
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new RuntimeConfigurationException("Unable to parse '" + data.getSuiteName() + "' specified");
|
||||
|
||||
Reference in New Issue
Block a user