diff --git a/topics/tutorials/writing_tests_for_plugins/annotator_test.md b/topics/tutorials/writing_tests_for_plugins/annotator_test.md index c1e00b64d..24d0f5472 100644 --- a/topics/tutorials/writing_tests_for_plugins/annotator_test.md +++ b/topics/tutorials/writing_tests_for_plugins/annotator_test.md @@ -33,4 +33,4 @@ It then calls the `checkHighlighting()` method to verify weak warnings. {src="simple_language_plugin/src/test/java/org/intellij/sdk/language/SimpleCodeInsightTest.java" include-symbol="testAnnotator"} ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/commenter_test.md b/topics/tutorials/writing_tests_for_plugins/commenter_test.md index 7dddee030..7eeefff35 100644 --- a/topics/tutorials/writing_tests_for_plugins/commenter_test.md +++ b/topics/tutorials/writing_tests_for_plugins/commenter_test.md @@ -17,4 +17,4 @@ It again calls the line comment action to remove the comment character and verif {src="simple_language_plugin/src/test/java/org/intellij/sdk/language/SimpleCodeInsightTest.java" include-symbol="testCommenter"} ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/completion_test.md b/topics/tutorials/writing_tests_for_plugins/completion_test.md index 31842a205..e4cd807c8 100644 --- a/topics/tutorials/writing_tests_for_plugins/completion_test.md +++ b/topics/tutorials/writing_tests_for_plugins/completion_test.md @@ -44,4 +44,4 @@ This method: A number of related methods exist in `CodeInsightTestFixture` for testing completion and lookup elements, e.g., when testing completion variants and requiring only one testdata file `CodeInsightTestFixture.testCompletionVariants()`. ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/documentation_test.md b/topics/tutorials/writing_tests_for_plugins/documentation_test.md index 42b627d19..cef0aecad 100644 --- a/topics/tutorials/writing_tests_for_plugins/documentation_test.md +++ b/topics/tutorials/writing_tests_for_plugins/documentation_test.md @@ -20,4 +20,4 @@ Finally, the documentation string is verified against the expected output. {src="simple_language_plugin/src/test/java/org/intellij/sdk/language/SimpleCodeInsightTest.java" include-symbol="testDocumentation"} ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/find_usages_test.md b/topics/tutorials/writing_tests_for_plugins/find_usages_test.md index 3a39fc299..374796ed2 100644 --- a/topics/tutorials/writing_tests_for_plugins/find_usages_test.md +++ b/topics/tutorials/writing_tests_for_plugins/find_usages_test.md @@ -29,4 +29,4 @@ This test verifies the find usage functionality will identify the "key with spac ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/folding_test.md b/topics/tutorials/writing_tests_for_plugins/folding_test.md index decf3b179..a4f94a08a 100644 --- a/topics/tutorials/writing_tests_for_plugins/folding_test.md +++ b/topics/tutorials/writing_tests_for_plugins/folding_test.md @@ -28,4 +28,4 @@ This test method reuses the DefaultTestData.simple Simple file. ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/formatter_test.md b/topics/tutorials/writing_tests_for_plugins/formatter_test.md index ec7e8914f..237f32fd4 100644 --- a/topics/tutorials/writing_tests_for_plugins/formatter_test.md +++ b/topics/tutorials/writing_tests_for_plugins/formatter_test.md @@ -27,4 +27,4 @@ Add the `testFormatter()` method to the `SimpleCodeInsightTest` class [previousl {src="simple_language_plugin/src/test/java/org/intellij/sdk/language/SimpleCodeInsightTest.java" include-symbol="testFormatter"} ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/parsing_test.md b/topics/tutorials/writing_tests_for_plugins/parsing_test.md index 2d4fbc2d7..52bd1acae 100644 --- a/topics/tutorials/writing_tests_for_plugins/parsing_test.md +++ b/topics/tutorials/writing_tests_for_plugins/parsing_test.md @@ -59,4 +59,16 @@ Override `getTestDataPath()`, and return the path from the root of this plugin m {src="simple_language_plugin/src/test/java/org/intellij/sdk/language/SimpleParsingTest.java"} ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +Run the test by: +* Opening the **Gradle** Tool Window. +* Select the `simple_language_plugin`. + You may need to reimport it as a Gradle project. +* Drill down under `simple_language_plugin` to *Tasks*, *verification*, *test* task. +* Run the *test* task. + +The results are displayed in the **Run** Tool Window, and also written to the `simple_language_plugin/build/test-results/test/` directory. + +If the **Run** Tool Window displays the error *Test events were not received*, do the following: +* In the **Gradle** Tool Window, drill down under `simple_language_plugin` to *Tasks*, *build*, *clean* task. +* Run the *clean* task, which deletes the `simple_language_plugin/build/` directory. +* Retry the test. diff --git a/topics/tutorials/writing_tests_for_plugins/reference_test.md b/topics/tutorials/writing_tests_for_plugins/reference_test.md index 8778d3b3a..c0b744032 100644 --- a/topics/tutorials/writing_tests_for_plugins/reference_test.md +++ b/topics/tutorials/writing_tests_for_plugins/reference_test.md @@ -27,4 +27,4 @@ The fixture gets the `PsiReference` at the caret position, and then asserts the ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green. diff --git a/topics/tutorials/writing_tests_for_plugins/rename_test.md b/topics/tutorials/writing_tests_for_plugins/rename_test.md index a56530464..ea7d60d34 100644 --- a/topics/tutorials/writing_tests_for_plugins/rename_test.md +++ b/topics/tutorials/writing_tests_for_plugins/rename_test.md @@ -41,4 +41,4 @@ Add the `testRename()` method to the `SimpleCodeInsightTest` class [previously d ## Run the Test -[Run](completion_test.md#run-the-test) the test and make sure it's green. +[Run](parsing_test.md#run-the-test) the test and make sure it's green.