Skip to content

Commit 3ff92a1

Browse files
authored
Get the unit and DAS tests running (#8)
* Move the testData tests files into src/test/* * Additional changes to get all tests, unit and DAS tests, running.
1 parent f77d72f commit 3ff92a1

File tree

1,034 files changed

+8
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,034 files changed

+8
-3
lines changed

third_party/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ tasks {
110110
wrapper {
111111
gradleVersion = providers.gradleProperty("gradleVersion").get()
112112
}
113+
test {
114+
// TODO figure out how to not need the sdk path hard coded:
115+
// Replace the [Dart SDK Path] to run the Dart Analysis Server tests
116+
jvmArgs("-Ddart.sdk=[Dart SDK path]]")
117+
}
113118
}
114119

115120
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-faq.html#how-to-check-the-latest-available-eap-release

third_party/src/test/java/com/jetbrains/lang/dart/util/DartTestUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ private static String findTestDataPath() {
4141
return FileUtil.toSystemIndependentName(PathManager.getHomePath() + "/contrib/Dart/testData");
4242
}
4343

44-
final File f = new File("testData");
44+
final File f = new File("src/test/testData");
4545
if (f.isDirectory()) {
4646
// started from 'Dart-plugin' project
4747
return FileUtil.toSystemIndependentName(f.getAbsolutePath());
4848
}
4949

5050
final String parentPath = PathUtil.getParentPath(PathManager.getHomePath());
5151

52-
if (new File(parentPath + "/intellij-plugins").isDirectory()) {
52+
if (new File(parentPath + "/dart-intellij-third-party").isDirectory()) {
5353
// started from IntelliJ IDEA Community Edition + Dart Plugin project
54-
return FileUtil.toSystemIndependentName(parentPath + "/intellij-plugins/Dart/testData");
54+
return FileUtil.toSystemIndependentName(parentPath + "/dart-intellij-third-party/third_party/src/test/testData");
5555
}
5656

5757
if (new File(parentPath + "/contrib").isDirectory()) {

0 commit comments

Comments
 (0)