Skip to main content

skip

def skip(reason: Optional[str] = None) -> None:

Skip a test. You can use this cheatcode to prepare tests for functionality that isn't completed yet.

danger

This cheatcode is only available in test case's setup.

%lang starknet

@external
func setup_function() {
%{
condition = True
if condition:
skip("Reason")
%}
return ();
}

@external
func test_function() {
return ();
}