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/guides/modules/test/pages/testsuite-configuration-reference.adoc
+65-8Lines changed: 65 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,20 +135,70 @@ run: go tool gotestsum --junitfile="<< outputs.junit >>" -- -race -count=1 << te
135
135
[#file-mapper]
136
136
== *`file-mapper`*
137
137
138
-
When test atoms are not files, Smarter Testing cannot determine which test files belong to which test atom. The `file-mapper` creates a mapping of test atoms to related test files.
138
+
When test atoms are not files, Smarter Testing cannot determine which test files belong to which test atom. The `file-mapper` command creates a mapping of test atoms to related test files.
139
139
140
140
* During analysis, Smarter Testing can associate test files with their test atoms in impact data.
141
141
* During selection, Smarter Testing can determine which test atom to run when a test file is modified.
142
142
143
-
The test atom to map can be specified in one of two ways:
143
+
File mapper maps all test atoms to test files in a single pass.
144
+
145
+
The test atoms to map can be specified in one of two ways:
144
146
145
147
* Use the template variable `<< test.atoms >>` in the `file-mapper` command.
146
-
* If the template variable is not found in the `file-mapper` command, the test atom will be passed on stdin.
148
+
* If the template variable is not found in the `file-mapper` command, the test atoms will be passed on stdin separated by newlines.
149
+
150
+
File mapper supports two different output formats:
151
+
152
+
* *Go list JSON format* `<< outputs.go-list-json >>`.
153
+
* *CircleCI list format* `<< outputs.circleci-list >>`.
154
+
155
+
=== *Go list JSON format*
156
+
157
+
Go list JSON format is the format produced by `go list -json="Dir,ImportPath,TestGoFiles,XTestGoFiles" ./\...`.
158
+
159
+
It consists of one or more JSON documents separated by newlines. Note that each record is a separate JSON document.
0 commit comments