Skip to content

Function allowing to assert steps #3824

@franciszekjob

Description

@franciszekjob

Select Tool

snforge

Requested Feature

ATM, snforge allows to configure number of maximum steps for an entire test, thanks to --max-n-steps flag. However, this limit applies globally to the whole test execution, making it impossible to assert or constrain the number of steps taken during specific parts of the test (e.g., after setup or between critical operations).

Example usage

fn setup() {
    // ...
}

#[test]
fn test_xyz() {
    setup();

    assert_max_n_steps(10_000);

    // ...
}

Metadata

Metadata

Assignees

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions