Skip to content

Blackbox/Whitebox tests docs missing #795

@juliancwirko

Description

@juliancwirko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions