You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Test '$title' compiled with $errors error(s) and $warnings warning(s),
1392
1392
|the test can be reproduced by running:
1393
1393
|
1394
-
| sbt "testFromTasty$file"
1394
+
| sbt "testCompilation --from-tasty$file"
1395
1395
|
1396
1396
|This tests can be disabled by adding `${file.getName}` to `compiler${JFile.separator}test${JFile.separator}dotc${JFile.separator}$runOrPos-$listName.blacklist`
Copy file name to clipboardExpand all lines: docs/docs/contributing/testing.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,3 +92,15 @@ To run `testCompilation` on a bootstrapped Dotty compiler, use
92
92
`dotty-compiler-bootstrapped/testCompilation` (with the same syntax as above).
93
93
Some tests can only be run in bootstrapped compilers; that includes all tests
94
94
with `with-compiler` in their name.
95
+
96
+
### From TASTy tests
97
+
98
+
`testCompilation` has a additional mode to run tests that compile code from a `.tasty` file, decompile a `.tasty` file and recompile the decompiled tasty.
99
+
Modify blacklist and whitelists in `compiler/test/dotc` to enable or disable tests from `.tasty` files.
100
+
101
+
```bash
102
+
$ sbt
103
+
> testCompilation --from-tasty
104
+
```
105
+
106
+
This mode can be combined with `--update-checkfiles` to update the `.decompiled` files or can be run under `dotty-compiler-bootstrapped/testCompilation` to test on a bootstrapped Dotty compiler.
0 commit comments