Skip to content

Stylus testing contracts #2111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

Stylus testing contracts #2111

wants to merge 50 commits into from

Conversation

anegg0
Copy link
Contributor

@anegg0 anegg0 commented Feb 28, 2025

This PR adds a detailed guide on testing Stylus smart contracts using the built-in testing framework.
The article covers:
• Introduction to the Stylus testing framework
• Key components for testing (TestVM, storage accessors, call mocking)
• A practical example using a Cupcake Vending Machine contract
• Comprehensive test examples demonstrating basic and advanced testing techniques
• Best practices for writing effective tests
• Migration guidance from global accessors to VM accessors

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-docs ✅ Ready (Inspect) Visit Preview May 6, 2025 1:47am

@anegg0 anegg0 changed the title Stylus testing contracts WIP Stylus testing contracts Apr 23, 2025
@anegg0 anegg0 marked this pull request as ready for review April 23, 2025 02:03
@anegg0 anegg0 marked this pull request as ready for review April 25, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant