Skip to content

Repository files navigation

slash-step

Build StatusBuild Status
Supported VersionsSupported Versions
Latest VersionLatest Version

Create a more granular sub STEP for Slash tests.

Some scenarios can be long and complex, but you still want to have them as a single logical test. Steps allow to document subsections of a test, and also provide some handy hooks to perform actions inside a test (such as validations).

To continue the microwave example from Slash's docs:

fromslashimportgfromslash_stepimportSTEP, hooks@hooks.step_end.registerdefmeasure_temperature():
ifg.microwave.temperature>180:
logger.warn("Microwave is over heating!")
deftest_cook_chicken():
withSTEP("Defrost chicken"):
# ...withSTEP("Cook"):
# ...withSTEP("Eat"):
# Yum...assertg.chicken.is_cooked()

About

Create a more granular sub STEP for slash tests.

Topics

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages