Skip to content

Commit 2746ee8

Browse files
authored
Fix Scala 2 library TASTy testing docs (#19366)
Update docs to align with update in #18967. [skip ci]
2 parents 4ee029b + 2cf6955 commit 2746ee8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/_docs/contributing/testing.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,26 @@ We can enable this library in the build using the SBT setting `useScala2LibraryT
177177

178178
```
179179
$ sbt
180-
> set ThisBuild/Build.useScala2LibraryTasty := true
180+
> set ThisBuild/Build.scala2Library := Build.Scala2LibraryTasty
181181
> scala3-compiler-bootstrapped/scalac MyFile.scala
182182
> scala3-compiler-bootstrapped/test
183183
> scala3-compiler-bootstrapped/testCompilation
184184
```
185185

186+
By default `scala2Library` is set to `Scala2LibraryJar`. This setting can be set to stop using the Scala 2 library TASTy.
187+
```
188+
> set ThisBuild/Build.scala2Library := Build.Scala2LibraryJar
189+
```
190+
191+
#### Scala 2 library with CC TASTy tests
192+
These follow the same structure as the _Scala 2 library TASTy tests_ but add captured checked signatures to the library. The library is compiled in `scala2-library-cc` (instead of `scala2-library-bootstrapped`) and `scala2-library-cc-tasty` (instead of `scala2-library-cc-tasty`).
193+
194+
We can also enable this library in the build using the SBT setting `useScala2LibraryTasty`.
195+
```
196+
> set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty
197+
```
198+
199+
186200
### From TASTy tests
187201

188202
`testCompilation` has an additional mode to run tests that compile code from a `.tasty` file.

0 commit comments

Comments
 (0)