Skip to content

Commit d1cbf5f

Browse files
Merge pull request #2247 from dotty-staging/update-filterTest-name-in-doc
Update intructions to run a single test
2 parents 3a9deec + 8f04941 commit d1cbf5f

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

docs/docs/contributing/testing.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ This might be aliased in the future. It is also possible to run tests filtered
8080
by using:
8181

8282
```bash
83-
> filterTest .*i2147.scala
83+
> vulpix i2147.scala
8484
```
8585

8686
This will run both the test `./tests/pos/i2147.scala` and
87-
`./tests/partest-test/i2147.scala` since both of these match the given regular
88-
expression. This also means that you could run `filterTest .*` to run all
89-
integration tests.
87+
`./tests/partest-test/i2147.scala` since both of these match the given string.
88+
This also means that you could run `vulpix` with no arguments to run all integration tests.

docs/docs/contributing/workflow.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,15 @@ $ sbt
5757
To test a specific test tests/x/y.scala (for example tests/pos/t210.scala):
5858

5959
```bash
60-
> filterTest .*pos/t210.scala
60+
> vulpix pos/t210.scala
6161
```
6262

63-
The filterTest task takes a regular expression as its argument. For example,
64-
you could run a negative and a positive test with:
63+
The `vulpix` task uses its argument for a substring test. For example, you
64+
could run both a negative and a positive test with the same name
65+
(`pos/i2101.scala` & `neg/i2101.scala`):
6566

6667
```bash
67-
> filterTest (.*pos/t697.scala)|(.*neg/i2101.scala)
68-
```
69-
70-
or if they have the same name, the equivalent can be achieved with:
71-
72-
```bash
73-
> filterTest .*/i2101.scala
68+
> vulpix i2101.scala
7469
```
7570

7671
## Inspecting Trees with Type Stealer ##

0 commit comments

Comments
 (0)