Added slashes in generated tests when they are invoked on directory.
This makes it easier to find directory for test using IDEA's go to file/search everywhere features.
This commit is contained in:
+2
-1
@@ -41,7 +41,8 @@ public class SimpleTestMethodModel implements TestMethodModel {
|
||||
|
||||
@Override
|
||||
public void generateBody(@NotNull Printer p, @NotNull String generatorClassFqName) {
|
||||
p.println(doTestMethodName, "(\"", JetTestUtils.getFilePath(file), "\");");
|
||||
String filePath = JetTestUtils.getFilePath(file) + (file.isDirectory() ? "/" : "");
|
||||
p.println(doTestMethodName, "(\"", filePath, "\");");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user