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: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,21 +40,21 @@ The available tool commands are:
40
40
The `generate` command is used to generate Foundry unit tests from Echidna or Medusa corpus call sequences.
41
41
42
42
**Command-line options:**
43
-
-`compilation_path`: The path to the Solidity file or Foundry directory
44
-
-`-cd`/`--corpus-dir``path_to_corpus_dir`: The path to the corpus directory relative to the working directory.
45
-
-`-c`/`--contract``contract_name`: The name of the target contract.
46
-
-`-td`/`--test-directory``path_to_test_directory`: The path to the test directory relative to the working directory.
47
-
-`-i`/`--inheritance-path``relative_path_to_contract`: The relative path from the test directory to the contract (used for inheritance).
48
-
-`-f`/`--fuzzer``fuzzer_name`: The name of the fuzzer, currently supported: `echidna` and `medusa`
49
-
-`--named-inputs`: Includes function input names when making calls
50
-
-`--config`: Path to the fuzz-utils config JSON file
51
-
-`--all-sequences`: Include all corpus sequences when generating unit tests.
43
+
-`compilation_path`: The path to the Solidity file or Foundry directory. By default `.`
44
+
-`-cd`/`--corpus-dir``path_to_corpus_dir`: The path to the corpus directory relative to the working directory. By default `corpus`
45
+
-`-c`/`--contract``contract_name`: The name of the target contract. If the compilation path only contains one contract the target will be automatically derived.
46
+
-`-td`/`--test-directory``path_to_test_directory`: The path to the test directory relative to the working directory. By default `test`
47
+
-`-i`/`--inheritance-path``relative_path_to_contract`: The relative path from the test directory to the contract (used for overriding inheritance). If this configuration option is not provided the inheritance path will be automatically derived.
48
+
-`-f`/`--fuzzer``fuzzer_name`: The name of the fuzzer, currently supported: `echidna` and `medusa`. By default `medusa`
49
+
-`--named-inputs`: Includes function input names when making calls. By default`false`
50
+
-`--config`: Path to the fuzz-utils config JSON file. Empty by default.
51
+
-`--all-sequences`: Include all corpus sequences when generating unit tests. By default `false`
52
52
53
53
**Example**
54
54
55
55
In order to generate a test file for the [BasicTypes.sol](tests/test_data/src/BasicTypes.sol) contract, based on the Echidna corpus reproducers for this contract ([corpus-basic](tests/test_data/echidna-corpora/corpus-basic/)), we need to `cd` into the `tests/test_data` directory which contains the Foundry project and run the command:
0 commit comments