Welcome to documentation¶
- Case
- Simple usage
- How to use assertion
- Assertion class. How to change it?
- Case class. How to change it during registration?
- How to use setup and teardown callbacks
- Ho to use case by steps
- Step performer
- How to use flows. What is it?
- How to use skip
- How to require extensions
- How to use case log. What is it?
- How can i add info to error reason?
- How can i to repeat test method?
- How to prepare test method?
- Suite
- Program
- Scripts
- Config
- Layers
- Scope
- Extensions
About¶
This is framework for test development.
Features¶
- Built-in extensions
- Async launch at choice
- Real suite objects
- Test script by steps
- Test case as class, function or static function
- Context flow for test execution
- XUnit xml report
- Detailed reason of crash by any problem
- Logical layers for all runnable objects
- Time of execution measured separately for any of runnable objects
- Opportunity to repeat test with help generator object
Installation¶
Full installation:
pip install seismograph
Simple install(for unit testing, without extensions):
SIMPLE_SEISMOGRAPH=true pip install seismograph
With choice extensions:
SEISMOGRAPH_EXTENSIONS='selenium, mocker' pip install seismograph
Quick start¶
import seismograph
suite = seismograph.Suite(__name__)
@suite.register
def my_first_test(case):
case.assertion.equal(1, 1)
if __name__ == '__main__':
seismograph.main()
Async run¶
- multiprocessing
- threading
- gevent (for python 2 only)