Skip to content

Commit

Permalink
More notes on -A.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjust committed Nov 3, 2024
1 parent c51cace commit 004f7bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions framework/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Before making a new release, make sure all of the following are true. See

1. All tests running in CI pass.

2. All bugs are reproducible.
2. All bugs are reproducible without failing tests, when running all tests (-A).

3. Code coverage analysis succeeds for all bugs (modulo documented issues).

Expand Down Expand Up @@ -71,12 +71,16 @@ time-consuming test.
To speed it up long-running tests, we use GNU parallel (`-j` gives the number of
parallel processes):

### Reproducing all bugs (parallel)
### Reproducing all bugs with all tests (parallel)
```
./jobs_cmd.pl ./test_verify_bugs.sh | shuf | parallel -j20 --progress
./jobs_cmd.pl ./test_verify_bugs.sh -A | shuf | parallel -j20 --progress
```
Reproducing all bugs (20 jobs in parallel) takes ~3h.

(When upgrading Defects4J it is helpful to drop the -A flag at first for
efficiency. After fixing any issues, test for full reproducibility with all
tests.)

### Code coverage analysis for all bugs (parallel)
```
./jobs_cmd.pl ./test_coverage_cmd.sh | shuf | parallel -j20 --progress
Expand Down

0 comments on commit 004f7bb

Please sign in to comment.