mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set generated name for testng suite configuration (IDEA-62539)
This commit is contained in:
+1
@@ -58,6 +58,7 @@ public class TestNGSuiteConfigurationProducer extends TestNGConfigurationProduce
|
||||
configuration.getPersistantData().SUITE_NAME = virtualFile.getPath();
|
||||
configuration.getPersistantData().TEST_OBJECT = TestType.SUITE.getType();
|
||||
configuration.restoreOriginalModule(originalModule);
|
||||
configuration.setGeneratedName();
|
||||
settings.setName(configuration.getName());
|
||||
RunConfigurationExtension.patchCreatedConfiguration(configuration);
|
||||
return settings;
|
||||
|
||||
@@ -184,8 +184,15 @@ public class TestData implements Cloneable
|
||||
if (TestType.PACKAGE.getType().equals(TEST_OBJECT)) if (getPackageName().length() == 0) return "<default>";
|
||||
else return getPackageName();
|
||||
String name = JavaExecutionUtil.getPresentableClassName(getMainClassName(), runconfigurationmodule);
|
||||
if (TestType.METHOD.getType().equals(TEST_OBJECT)) return name + '.' + getMethodName();
|
||||
else return name;
|
||||
if (TestType.METHOD.getType().equals(TEST_OBJECT)) {
|
||||
return name + '.' + getMethodName();
|
||||
}
|
||||
else if (TestType.SUITE.getType().equals(TEST_OBJECT)) {
|
||||
return getSuiteName();
|
||||
}
|
||||
else {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
public String getMainClassName() {
|
||||
|
||||
Reference in New Issue
Block a user