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
Enable all testing modes by default, update property mode testing, improve UX, allow for contracts to have starting balances, and fix coverage panic (crytic#216)
* - merged all three testing modes
- created testing provider utils file to evaluate whether an abi.method is an optimization / property test
- updated fuzzer tests
- made default property test prefix "invariant_"
* enable all testing modes, update fuzzer tests
* add verification for config
* improve config-related errors
* update deploymentOrder to targetContracts
* update edge case where coverage is 0/0 lines
* add support for payable constructors
* linting
* fix bug
* fix panic and improve return data printing in execution trace
* encode bytes and byteX as hex strings
* fix console
* updates from PR review
* change config language
fmt.Sprintf("target contracts for fuzz testing (unless a config file is provided, default is %v)", defaultConfig.Fuzzing.TargetContracts))
46
46
47
47
// Corpus directory
48
-
// TODO: Update description when we add "coverage reports" feature
49
48
fuzzCmd.Flags().String("corpus-dir", "",
50
-
fmt.Sprintf("directory path for corpus items (unless a config file is provided, default is %q)", defaultConfig.Fuzzing.CorpusDirectory))
49
+
fmt.Sprintf("directory path for corpus items and coverage reports (unless a config file is provided, default is %q)", defaultConfig.Fuzzing.CorpusDirectory))
fmt.Sprintf("enable assertion mode (unless a config file is provided, default is %t)", defaultConfig.Fuzzing.Testing.AssertionTesting.Enabled))
63
-
64
-
// Optimization mode
65
-
fuzzCmd.Flags().Bool("optimization-mode", false,
66
-
fmt.Sprintf("enable optimization mode (unless a config file is provided, default is %t)", defaultConfig.Fuzzing.Testing.OptimizationTesting.Enabled))
67
-
68
59
// Trace all
69
60
fuzzCmd.Flags().Bool("trace-all", false,
70
61
fmt.Sprintf("print the execution trace for every element in a shrunken call sequence instead of only the last element (unless a config file is provided, default is %t)", defaultConfig.Fuzzing.Testing.TraceAll))
0 commit comments