Skip to main content
Try out the RareSkills ZK AI Tutor!

Foundry

Browse all Foundry articles.

17 min read

Cheatcodes in Starknet Foundry

A "cheatcode" in Foundry is a mechanism that allows contract tests to control environment variables such as caller address, the current timestamp, and so…

Last updated onDec 10, 2025
Read Article

16 min read

Invariant Testing in Foundry

In this article, we will discuss invariants and how to perform an invariant test on Solidity smart contracts using Foundry test suites.

Last updated onNov 12, 2026
Read Article

6 min read

Solidity Mutation Testing

Mutation testing is a method to check the quality of the test suite by intentionally introducing bugs into the code and ensuring the tests catch the bug.

Last updated onNov 12, 2026
Read Article

1 min read

Foundry forge coverage

If you run "forge coverage" in a Foundry project, you'll get a table showing how much of your lines and branches are covered.

Last updated onNov 12, 2026
Read Article

1 min read

Verify Signature Solidity in Foundry

Here is a minimal (copy and paste) example of how to safely create and verify ECDSA signatures with OpenZeppelin in the Foundry environment.

Last updated onNov 12, 2026
Read Article

3 min read

Solidity test internal function

To test an internal Solidity function, create a child contract that inherits from the contract being tested, wrap the parent contract’s internal function…

Last updated onNov 12, 2026
Read Article

11 min read

Foundry Unit Tests

This article will describe how to create unit tests in Solidity using Foundry.

Last updated onNov 12, 2026
Read Article