foundry/testdata
grandizzy a6d6a3a8f0
feat(cheatcodes): forge execution context check (#7377)
* feat(cheatcodes): forge execution context check

* Add tests for test and snapshot contexts

* Add isTestContext, isScriptContext cheatcodes

* Add script dry run and broadcast tests

* Proper enum in cheatcodes schema, alphabetical order

* Single isContext cheatcode in env group, taking enum as param. remove context group

* Changes after review: remove discriminant calls, use OnceLock

* Review changes: tests should not be async

* Review changes: implement PartialEq for ForgeContext, remove is_forge_context fn

* Properly add new ForgeContext enum
History 2024-04-09 15:21:20 +02:00
..
cheats feat(cheatcodes): forge execution context check (#7377) 2024-04-09 15:21:20 +02:00
default fix(invariant): honor targetContract setting, don't update targets if any (#7595) 2024-04-09 14:22:23 +02:00
fixtures fix(cheatcodes): add repro test for once reported issues around empty JSON arrays (#7348) 2024-03-09 16:28:12 +01:00
lib/ds-test/src chore: rm cached forge-std (#4066) 2023-01-10 22:29:58 +01:00
multi-version fix: smarter getCode validation (#7597) 2024-04-08 19:13:41 +04:00
.gitignore test: compile testdata/ only once (#6305) 2023-11-14 02:21:35 +01:00
foundry.toml invariant: #6694 add preserve_state config (#7219) 2024-02-28 19:55:51 +01:00
README.md fmt: all (#3398) 2022-09-28 18:28:26 +02:00

Foundry Tests

A test suite that tests different aspects of Foundry.

Structure

  • core: Tests for fundamental aspects of Foundry
  • logs: Tests for Foundry logging capabilities
  • cheats: Tests for Foundry cheatcodes
  • fuzz: Tests for the Foundry fuzzer
  • trace: Tests for the Foundry tracer
  • fork: Tests for Foundry forking capabilities