Skip to content

test: remove testFail* tests#643

Merged
zerosnacks merged 1 commit into
masterfrom
zerosnacks/deprecate-fail
Jan 31, 2025
Merged

test: remove testFail* tests#643
zerosnacks merged 1 commit into
masterfrom
zerosnacks/deprecate-fail

Conversation

@zerosnacks

@zerosnacks zerosnacks commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

In preparation to deprecate testFail*: foundry-rs/foundry#9574

  • Removes deployMockERC721 and deployMockERC20 from StdUtils as their tests includes large amount of testFail* tests and is generally outdated. I haven't been able to find the deploy* methods being used in any public project on Github.
  • Implements workaround for other cases

Alternatively we could upstream Solady's mocks and tests (which have been updated to not use testFail* but this feels out of place and would be incomplete (ERC4626, ERC6909, etc.. https://github.com/Vectorized/solady/tree/main/test/utils/mocks). I think it is most common for people to rely on the mocks their library comes with (be it Solmate, Solady or OpenZeppelin) or write their own wrapper around the token implementation.

@zerosnacks

zerosnacks commented Jan 9, 2025

Copy link
Copy Markdown
Contributor Author

cc @mds1 if you would like to retain the deploy utility methods I could port over Solady's test suite which does not have testFail* methods and is largely similar as it also initially forked Solmate's test suite

Related: #469 (comment)

@grandizzy

Copy link
Copy Markdown
Contributor

ping @mds1 could you please check comment above? thank you!

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.

2 participants