Releases
v1.7.1
Compare
Sorry, something went wrong.
No results found
Add the skip test decorator, with an optional reason, to skip a test without compiling or running it.
Example: #[skip("needs a mainnet fork")]
Add a remapping for each library in lib/ without one, as forge infers them, so #include "foundry-huff-neo/test.huff" works after forge install.
An include such as utils/Math.huff now resolves into lib/utils/ when that library exists.
Breaking : Stop a test at a failed vm.assert*, as forge test does, instead of letting it run on.
A failed cheatcode reverts, which fails a test that passes the revert on, even with expect_revert or after vm.revertToState.
A test that ignores the success flag of a failed vm.assert* call now passes.
Breaking : Reject a test with the name of a macro, which replaced the macro and made invoking it fail with "Test Invocation".
Fix test failures showing cheatcode errors and Error(string) reverts as raw hex without their message.
Fix a test that calls vm.skip(true) failing instead of being skipped, as in forge test.
Fix a relative #include inside a file included by an absolute path resolving against the working directory.
Fix a remapping applying to every occurrence of its prefix in a path, and pick the longest matching prefix as forge does.
Update the book: document skipping tests, failed cheatcodes, and foundry-huff-neo's cheatcode macros with how lib/ libraries are found.
You can’t perform that action at this time.