-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
Do we have any ETA for docs on the new testing approach? 👇
There are two flavors of integration tests:
Black-box tests: execution imitates the blockchain, no access to private contract functions;
White-box tests: the test has access to the inner workings of the contract.
It isn't easy to learn the topic.
At least from the Testing overview section.
And I believe the Rust Testing Framework (in a different section) is outdated.
Topics to add:
- What I can and can't test with whitebox/blackbox, very simple examples,
- Which SC methods exactly can I access in both cases, and which not? For example, how to test the self.send().esdt_local_burn() triggered through the endpoint. What initial setup is required, what roles, how to set them, etc?
- Simple initialization for both (whitebox/blackbox) - file structure, best practices, examples
The docs could be added systematically, not necessarily all at once, to split the work and gather feedback.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels