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:
Evgeny Gerashchenko
2014-06-06 14:08:31 +04:00
parent a10085efe9
commit c7318b3880
11 changed files with 251 additions and 249 deletions
@@ -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