Skip to content

feat: add test runner#2

Merged
gakonst merged 8 commits intomasterfrom
feat/dapp
Sep 12, 2021
Merged

feat: add test runner#2
gakonst merged 8 commits intomasterfrom
feat/dapp

Conversation

@gakonst
Copy link
Member

@gakonst gakonst commented Sep 12, 2021

  • can call the vm directly w/ solidity(can deploy & interact)
  • can follow the dapptools pattern for writing solidity only tests

@gakonst gakonst merged commit 1df7f08 into master Sep 12, 2021
@gakonst gakonst deleted the feat/dapp branch October 1, 2021 10:35
@transmissions11 transmissions11 mentioned this pull request Dec 16, 2021
@carlosdp carlosdp mentioned this pull request May 17, 2022
8 tasks
@onbjerg onbjerg mentioned this pull request Jun 9, 2022
14 tasks
@621625 621625 mentioned this pull request Aug 3, 2022
pistomat pushed a commit to pistomat/foundry that referenced this pull request Aug 14, 2023
Evalir pushed a commit that referenced this pull request Sep 11, 2023
* fuzz single refactor

* add struct docs

* Update crates/evm/src/fuzz/mod.rs

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* add docs and move types to types.rs

* fmt

* add new debugger args type

* add minimal debugger-refactor changes

* finish him!

* fmt

* remove TODO

* minimal diff

* apply review suggestions

* add TODO

* looks better

* make ContractSources wrapper

* add more docki docs

* write file_id docs!

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
mikelodder7 referenced this pull request in LIT-Protocol/foundry Sep 12, 2023
* fuzz single refactor

* add struct docs

* Update crates/evm/src/fuzz/mod.rs

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* add docs and move types to types.rs

* fmt

* add new debugger args type

* add minimal debugger-refactor changes

* finish him!

* fmt

* remove TODO

* minimal diff

* apply review suggestions

* add TODO

* looks better

* make ContractSources wrapper

* add more docki docs

* write file_id docs!

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Evalir added a commit that referenced this pull request Sep 15, 2023
* feat: migrate non-cheatcode inspectors

* fix: properly create both create and create2 addresses

* chore: clippy

* (#3) Alloy Migration: migrate fork-adjacent files to alloy primitives (#5771)

* chore: use create2_from_code

* borrow it brah

* chore: use from word

* chore: drop to_be_bytes

* fmt

* chore: use from_word on both palces
Evalir added a commit that referenced this pull request Sep 18, 2023
* feat: use alloy revm branch

* fuzz/mod migrated

* progress

* progress, fmt

* fix imdb

* feat: cheatcodes compile

* feat: fork backend compiles

* feat: trace

* fuzz

* anvil progress

* chore: mem, fmt

* chore: db.rs

* chore: it lives

* fix test

* chore: clippy

* workin

* main backend stuff migrated

* chore: add glue on other crates

* chore: make executor use alloy types

* add glue for executor migration

* chore: use workspace alloy

* chore: undo revm bump changes

* chore: remove unneded prefix

* chore: fix fork fixture

* chore: uncomment tests

* chore: switch to up-to-date revm

* chore: clippy

* (#2) Alloy Migration: Migrate non-cheatcode inspectors (#5770)

* feat: migrate non-cheatcode inspectors

* fix: properly create both create and create2 addresses

* chore: clippy

* (#3) Alloy Migration: migrate fork-adjacent files to alloy primitives (#5771)

* chore: use create2_from_code

* borrow it brah

* chore: use from word

* chore: drop to_be_bytes

* fmt

* chore: use from_word on both palces

* chore: use address::random

* chore: make failure slot b256

* chore: use address::random

* chore: fix indexes

* chore: use contract.hash

* chore: do not collect

* chore: use display on alloy nums

* use + operator

* chore: unwrap bytes and replace import

* chore: Into:: -> ::from

* chore: fix test

* chore: use alloy imports

* chore: switch to alloy typesd

* chore: fix test
RPate97 referenced this pull request in sphinx-labs/foundry Feb 7, 2024
mattsse pushed a commit that referenced this pull request Apr 18, 2024
Test: fix rate limit issue for forge clone tests
RainbowScientist5 referenced this pull request in RainbowScientist-Playground/foundry_rsdvops Mar 15, 2025
simon-something referenced this pull request in simon-something/foundry Mar 28, 2025
0xrusowsky added a commit that referenced this pull request May 23, 2025
grandizzy added a commit that referenced this pull request May 23, 2025
* add lint cmd, variable lints

* wip

* wip

* wip

* wip

* wip

* wip

* add keccak256 opt test

* wip

* wip

* wip

* wip

* fix div before mul

* update lint args

* wip

* update declare lints macro

* update with_severity

* configure linter

* wip

* update hash value

* fix read in source

* rayon

* reorder lint declarations

* clippy

* add placeholder for additional lints

* more placeholders

* wip

* wip

* refactor into sol linter

* impl Linter for SolidityLinter

* fmt

* wip

* wip

* refactor lints into SolLint enum

* update lint trait

* wip

* wip

* wip

* wip

* wip

* update lint

* update forge lint to use ProjectLinter

* wip

* include/exclude files from linting

* linter output display note

* configure with severity and description

* fmt

* implementing display

* wip

* wip

* implement display for linter output, clippy fixes

* add note to update colors

* update linter output display

* remove todos, clean up comments

* clean up display

* update med finding color

* add optional help message

* display help message

* simplify lint args, make severity configurable

* updating lints, update tests

* add tests for info patterns, fix regex

* remove function mixed case

* doc comments

* clippy

* fmt

* reorganize, crate level docs

* fix info lints

* Use Solar daignostics instead of `LinterOutput` (#6)

* use solar diagnostics, remove unneeded types

* update diagnostic emission

* clippy

* set track daignostics to false

* display help message

* set level according to severity

* update descriptions to be more concise

* removed LinterError from lint trait

* early pass + tests

* fix: fmt + clippy

* fix: fmt + clippy

* fix: fmt + clippy

* fix: fmt + clippy

* fix: feedback

* fix: feedback

* fix: regex

Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>

* tests: cli integration

* fix: broken test

* fix: fmt

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* style: naming

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* style: fmt

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* fix: use heck + individual lint macros + housekeeping

* fix: single session with parallel linting per file

* style: fix docs errors + typos

* docs: ref to deleted field

* fix: preprocessor regression + cargo.toml + default lint config tests

* test(forge): solar test runner (#2)

* style: clippy

* typo

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* fix: housekeeping

* docs: linter docs for users + devs

* docs: style

* docs: style

* clone lint testdata with lf

* fix: out dir constructor

* update toml

* fix: merge conflicts

* fix: cargo.lock merge conflicts

* style: clippy

* style: whitespace

* fix: clippy

* Cargo.lock update to weekly task

* Preserve alloy patch placeholders

* Clippy

---------

Co-authored-by: 0xKitsune <0xkitsune@protonmail.com>
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
@o-az o-az mentioned this pull request May 27, 2025
haythemsellami referenced this pull request in category-labs/foundry Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant