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
Copy file name to clipboardExpand all lines: docs/api-documents/options.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ There are command line options which can override the configuration in `as-test.
25
25
### Run partial test cases
26
26
27
27
```
28
-
--testcase <testcases...> only run specified test cases
28
+
--testFiles <test files...> only run specified test cases
29
29
--testNamePattern <test name pattern> run only tests with a name that matches the regex pattern
30
30
--onlyFailures Run tests that failed in the previous
31
31
```
@@ -34,10 +34,10 @@ There are several ways to run partial test cases:
34
34
35
35
#### Run specified test files
36
36
37
-
Providing file path to `--testcase`, it can specify a certain group of files for testing.
37
+
Providing file path to `--testFiles`, it can specify a certain group of files for testing.
38
38
39
39
::: tip
40
-
`--testcase` can accept multiple file paths.
40
+
`--testFiles` can accept multiple file paths.
41
41
:::
42
42
43
43
::: details
@@ -52,7 +52,7 @@ Providing file path to `--testcase`, it can specify a certain group of files for
52
52
|- case_4
53
53
```
54
54
55
-
run `as-test --testcase a.test.ts b.test.ts` will match all tests in `a.test.ts` and `b.test.ts`
55
+
run `as-test --testFiles a.test.ts b.test.ts` will match all tests in `a.test.ts` and `b.test.ts`
56
56
57
57
:::
58
58
@@ -91,7 +91,7 @@ describe("groupB", () => {
91
91
run `as-test --testNamePattern "groupA case_\d"` will run `case_1`, `case_2`, `case_3`.
92
92
93
93
::: tip
94
-
The framework join `DescriptionName` and `TestName` with `" "` by default, e.g. `groupA case_1` is the fullTestCaseName of `case_1`.
94
+
The framework join `DescriptionName` and `TestName` with `" "` by default, e.g. `groupA case_1` is the full test case name of `case_1`.
95
95
96
96
:::
97
97
@@ -105,6 +105,6 @@ Provides `--onlyFailures` command line option to run the test cases that failed
105
105
--collectCoverage <boolean> whether to collect coverage information and report
106
106
```
107
107
108
-
The framework collects coverage and generates reports by default, but it will be disablea while running partial test cases by `--testcase` or `--testNamePattern`.
108
+
The framework collects coverage and generates reports by default, but it will be disablea while running partial test cases by `--testFiles` or `--testNamePattern`.
109
109
110
110
You can control the coverage collection manually with `--collectCoverage` option.
0 commit comments