From 8414e7669064994839420a9b8f3e960880029995 Mon Sep 17 00:00:00 2001 From: tanishiking Date: Tue, 25 May 2021 20:18:16 +0900 Subject: [PATCH 1/2] Update docs/contributing/testing replace dotty with scala3 in project name --- docs/docs/contributing/testing.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/contributing/testing.md b/docs/docs/contributing/testing.md index c0fdca5f10dc..aaa924e447b4 100644 --- a/docs/docs/contributing/testing.md +++ b/docs/docs/contributing/testing.md @@ -17,7 +17,7 @@ The entire suite of tests can be run using the bootstrapped compiler as follows: ```bash $ sbt -> dotty-bootstrapped/test +> scala3-bootstrapped/test ``` There are currently several forms of tests in Dotty. These can be split into @@ -32,7 +32,7 @@ To run all tests in e.g., for the compiler test-suite you can write: ```bash $ sbt -> dotty-compiler/test +> scala3-compiler/test ``` To run a single test class you use `testOnly` and the fully qualified class name. @@ -130,7 +130,7 @@ $ sbt ### Bootstrapped-only tests To run `testCompilation` on a bootstrapped Dotty compiler, use -`dotty-compiler-bootstrapped/testCompilation` (with the same syntax as above). +`scala3-compiler-bootstrapped/testCompilation` (with the same syntax as above). Some tests can only be run in bootstrapped compilers; that includes all tests with `with-compiler` in their name. @@ -144,7 +144,7 @@ with `with-compiler` in their name. > testCompilation --from-tasty ``` - This mode can be run under `dotty-compiler-bootstrapped/testCompilation` to test on a bootstrapped Dotty compiler. + This mode can be run under `scala3-compiler-bootstrapped/testCompilation` to test on a bootstrapped Dotty compiler. ### SemanticDB tests @@ -157,5 +157,5 @@ Expect files are used as regression tests to detect changes in the compiler. The test suite will create a new file if it detects any difference, which can be compared with the original expect file, or if the user wants to globally replace all expect files for semanticdb they can use -`dotty-compiler-bootstrapped/test:runMain dotty.tools.dotc.semanticdb.updateExpect`, and compare the changes via version +`scala3-compiler-bootstrapped/test:runMain dotty.tools.dotc.semanticdb.updateExpect`, and compare the changes via version control. From a7cb8b19c9c70c49085fa823ff7c2b8290e27227 Mon Sep 17 00:00:00 2001 From: tanishiking Date: Tue, 25 May 2021 20:19:44 +0900 Subject: [PATCH 2/2] UPdate testing doc (add command that run SemanticdbTests only) --- docs/docs/contributing/testing.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/contributing/testing.md b/docs/docs/contributing/testing.md index aaa924e447b4..a2e31378a7d2 100644 --- a/docs/docs/contributing/testing.md +++ b/docs/docs/contributing/testing.md @@ -148,6 +148,11 @@ with `with-compiler` in their name. ### SemanticDB tests +```bash +$ sbt +> scala3-compiler-bootstrapped/testOnly dotty.tools.dotc.semanticdb.SemanticdbTests +``` + The output of the `extractSemanticDB` phase, enabled with `-Xsemanticdb` is tested with the bootstrapped JUnit test `dotty.tools.dotc.semanticdb.SemanticdbTests`. It uses source files in `tests/semanticdb/expect` to generate two kinds of output file that are compared with "expect files": placement of semanticdb symbol occurrences inline in