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/src/test-api/class-testconfig.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,10 @@ export default defineConfig({
39
39
## property: TestConfig.captureGitInfo
40
40
* since: v1.51
41
41
- type: ?<[Object]>
42
-
-`commit` ?<boolean> Whether to capture commit information such as hash, author, timestamp.
42
+
-`commit` ?<boolean> Whether to capture commit and pull request information such as hash, author, timestamp.
43
43
-`diff` ?<boolean> Whether to capture commit diff.
44
44
45
-
* These settings control whether git information is captured and stored in the config [`property: TestConfig.metadata`].
46
-
* The structure of the git commit metadata is subject to change.
47
-
* Default values for these settings depend on the environment. When tests run as a part of CI where it is safe to obtain git information, the default value is true, false otherwise.
45
+
These settings control whether git information is captured and stored in the config [`property: TestConfig.metadata`].
48
46
49
47
**Usage**
50
48
@@ -56,6 +54,20 @@ export default defineConfig({
56
54
});
57
55
```
58
56
57
+
**Details**
58
+
59
+
* Capturing `commit` information is useful when you'd like to see it in your HTML (or a third party) report.
60
+
* Capturing `diff` information is useful to enrich the report with the actual source diff. This information can be used to provide intelligent advice on how to fix the test.
61
+
62
+
:::note
63
+
Default values for these settings depend on the environment. When tests run as a part of CI where it is safe to obtain git information, the default value is `true`, `false` otherwise.
64
+
:::
65
+
66
+
:::note
67
+
The structure of the git commit metadata is subject to change.
0 commit comments