Skip to content

Commit

Permalink
Context about different command-line interfaces (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 30, 2024
1 parent 90d4ecd commit f8ad201
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,20 @@ Using Defects4J
- `defects4j compile`
- `defects4j test`

5. The scripts in [`framework/test/`](framework/test/)
5. Some Defects4J commands take the project id as a command-line argument
(possibly along with other arguments). Examples include `info`, `checkout`,
and `query`. Note that `info` and `query` report infromation that is derived
from the Defects4J metadata and do not require access to project files that
are in the project's VCS.

Other commands require a working directory, either set explicitly
(`-w` command-line argument) or implicitly (executed from within a working
directory). Examples include any command that requires access to files under
version control, including source code and build files. This includes all
commands that build or test the code (`compile`, `test`, `coverage`, `mutation`)
and commands that return version-specific information (`export`).

6. The scripts in [`framework/test/`](framework/test/)
are examples of how to use Defects4J, which you might find useful
as inspiration when you are writing your own scripts that use Defects4J.

Expand Down
3 changes: 2 additions & 1 deletion framework/bug-mining/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ Terms commonly used in Defects4J
- `Rev ID`: A VCS-specific revision id (e.g., a git commit hash).
- `active-bugs.csv`: A csv file, per project, that maps each BID to the revision ids
of the pre-fix and post-fix revision.

- working directory: where the buggy or fixed version of the code appears.
The `checkout` command creates a working directory.


## Troubleshooting
Expand Down

0 comments on commit f8ad201

Please sign in to comment.