Skip to content

v1.7.1

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Oct 17:57
· 1 commit to main since this release
2fe1d0c
  • 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.