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
{{ message }}
This repository was archived by the owner on Sep 8, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,39 +10,44 @@ Failed tests will (typically) have a log file (`test/files/$kind/$testName-$kind
10
10
that differs from their check file (`test/files/$kind/$testName.check`).
11
11
12
12
Test categories (subdirectories under `test/files`)
13
+
13
14
-`pos`: these files must compile successfully
14
15
-`run`: in addition to compiling, `Test.main` is run and its output is compared against the test's `.check` file
15
16
-`neg`: these files must not compile, with compiler output matching the expected output in the `.check` file
16
17
-`jvm`: JVM-specific run tests
17
18
18
19
As partest links directly against the compiler being tested, it's cross-versioned against
19
-
the compiler version that it's intended for.
20
+
the compiler version that it's intended for.
20
21
21
22
There are three ways of invoking partest:
23
+
22
24
- ant (see https://github.com/scala/scala/blob/2.11.x/test/build-partest.xml and https://github.com/scala/scala-partest/blob/master/src/main/scala/scala/tools/partest/PartestTask.scala)
- the [test/partest script](https://github.com/scala/scala/blob/2.11.x/test/partest), which uses ant to set up the classpath in the same way as the ant task, but then launches [ConsoleRunner](https://github.com/scala/scala-partest/blob/master/src/main/scala/scala/tools/partest/nest/ConsoleRunner.scala) directly.
25
-
27
+
26
28
The compiler to be tested must be on the classpath.
27
29
The corresponding jar or class directory is detected by [FileManager::findArtifact](https://github.com/scala/scala-partest/blob/master/src/main/scala/scala/tools/partest/nest/FileManager.scala#L123).
28
30
29
31
The classpath to run partest is specific to the compiler/libraries under test (script not included here, but see [the main test/partest script](https://github.com/scala/scala/blob/2.11.x/test/partest)).
30
32
It must provide the scala compiler to be tested and all its dependencies, and of course a compatible version of partest.
31
33
For details on the available arguments, see the [ConsoleRunner argument spec](https://github.com/scala/scala-partest/blob/master/src/main/scala/scala/tools/partest/nest/ConsoleRunnerSpec.scala).
32
34
Here are some non-obvious useful options:
35
+
33
36
-`--failed`: run only failed tests (ones that have a log file)
34
37
-`--update-check`: overwrite check files with log files (where the latter exists)
0 commit comments