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
In the Foundry Book in Best Practices section there is a recommended way of naming tests, but the tests in this repo do not conform to this best practice. This is already issued in #273 .
I am open to rename those tests myself, but I just wanted to ask for some guidance before I make the changes.
In the test/StdChains.t.sol there is a test that looks like this ->
functiontest_ChainNoDefault()public{// We deploy a mock to properly test the revert.StdChainsMockstdChainsMock=newStdChainsMock();vm.expectRevert("StdChains getChain(string): Chain with alias \"does_not_exist\" not found.");stdChainsMock.exposed_getChain("does_not_exist");}
I am not sure how exactly to rename tests.
Simple way would be changing from test_ChainNoDefault() to the test_RevertIf_ChainNoDefault() .
But I think this doesn't make a lot of sense, so I was about to rename the test like this : test_RevertIf_ChainNotFound() .
Just wanted to know which is a preferred way? Should I just add _RevertIf_ part where needed, or change tests names completely, where it makes sense to do so?
The text was updated successfully, but these errors were encountered:
In the Foundry Book in Best Practices section there is a recommended way of naming tests, but the tests in this repo do not conform to this best practice. This is already issued in #273 .
I am open to rename those tests myself, but I just wanted to ask for some guidance before I make the changes.
Quick example :
forge-std/test/StdChains.t.sol
Line 87 in 1ce7535
In the
test/StdChains.t.sol
there is a test that looks like this ->I am not sure how exactly to rename tests.
test_ChainNoDefault()
to thetest_RevertIf_ChainNoDefault()
.test_RevertIf_ChainNotFound()
.Just wanted to know which is a preferred way? Should I just add
_RevertIf_
part where needed, or change tests names completely, where it makes sense to do so?The text was updated successfully, but these errors were encountered: