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
This directory contains test fixtures for the Maven test runner, including sample Maven Surefire reports used to test the `--scan-dryrun-results` feature.
4
+
5
+
## Directory Structure
6
+
7
+
-`dryrun-test/` - Test data for the `--scan-dryrun-results` feature
8
+
-`target/surefire-reports/` - Sample Maven Surefire reports (XML and TXT formats)
9
+
-`reports/` - Sample test result XML files for various test scenarios
10
+
11
+
## How to Test Manually with Your Own Project
12
+
13
+
To manually test the `--scan-dryrun-results` feature with your own Maven project:
## Creating Test Files for `--scan-dryrun-results`
43
+
44
+
The test files in `dryrun-test/target/surefire-reports/` are fixtures that simulate Maven Surefire reports generated by running tests with Maven's dry-run mode.
45
+
46
+
### How to Create/Update These Files
47
+
48
+
To create or update test fixture files, run Maven tests from within the `dryrun-test` directory:
49
+
50
+
```bash
51
+
cd tests/data/maven/dryrun-test
52
+
53
+
# Run Maven dry-run to generate Surefire reports
54
+
mvn test -DdryRun=true
55
+
56
+
# The reports will be automatically generated in target/surefire-reports/
57
+
# - XML files: TEST-*.xml (detailed test execution results)
58
+
# - TXT files: *.txt (summary information for each test class)
59
+
```
60
+
61
+
The generated reports in `target/surefire-reports/` are used directly as test fixtures.
0 commit comments