fix "run the test" links and add description back

This commit is contained in:
Karol Lewandowski 2022-02-22 11:35:51 +01:00
parent 23fdc33436
commit 1682983003
10 changed files with 22 additions and 10 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -28,4 +28,4 @@ This test method reuses the <path>DefaultTestData.simple</path> 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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.