Yelp / fuzz-lightyear

A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing.
Other
205 stars 25 forks source link

Add preflight hook to run setup code before tests run #16

Closed domanchi closed 4 years ago

domanchi commented 4 years ago

Issue

At times, we may want to run custom setup code, before fuzz-lightyear kicks off its tests. We should support this through some sort of decorated function.

e.g.

@fuzz_lightyear.setup
def setup():
    # This code runs, before anything else!
    pass

Currently, since we don't have this, any setup code would require the manual import of fuzz-lightyear in a separate script (which is not ideal).