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
Before using the commands, ensure that your GitHub Actions runner has Node.js
65
71
installed.
66
72
@@ -340,7 +346,7 @@ This ensures that the test results are available for future runs.
340
346
You can merge reports if your chosen reporter generates multiple reports through
341
347
design, parallelisation or otherwise.
342
348
343
-
The [ctrf-cli](https://github.com/ctrf-io/ctrf-cli) package provides a method to
349
+
If you use a glob pattern, reports will be merged automatically, otherwise the [ctrf-cli](https://github.com/ctrf-io/ctrf-cli) package provides a method to
344
350
merge multiple ctrf json files into a single file.
345
351
346
352
After executing your tests, use the following command:
@@ -352,6 +358,20 @@ npx ctrf merge <directory>
352
358
Replace directory with the path to the directory containing the CTRF reports you
353
359
want to merge.
354
360
361
+
### Glob Pattern
362
+
363
+
A glob pattern is a string that specifies sets of filenames with wildcards and special characters. This allows you to match multiple files or directories without specifying each file explicitly.
364
+
365
+
Here are some examples of glob patterns you can use:
366
+
367
+
`ctrf/ctrf-report.json`- Matches the exact file ctrf/ctrf-report.json.
368
+
369
+
`ctrf/*.json`- Matches all .json files in the ctrf directory.
370
+
371
+
`ctrf/**/*.json`- Matches all .json files in the ctrf directory and its subdirectories.
372
+
373
+
`ctrf/ctrf-report*`- Matches any file starting with ctrf-report (e.g., ctrf-report.json, ctrf-report-old.json).
374
+
355
375
## Pull Requests
356
376
357
377
There are two ways you can post comments on pull requests.
0 commit comments