Welcome¶
Specter is a Python testing framework inspired from RSpec and Jasmine. The library was created out of a desire to have a relatively flexible Python testing framework that adopted a more code-centric approach to BDD.
Specter is open-source and is available on GitHub. We love contributions!
Note
Questions or issues? Open an issue on GitHub.
Documentation¶
- Using Specter
- Writing Specter Tests
- Parallel Testing in Specter
- Reporting
- API Reference
- Migrating from pytest
- Troubleshooting
selfis not an instance of my Spec class- Tests in
before_all/after_alldon’t see each other’s state - Parallel mode: state set in one test is not visible in another
- Tests are not discovered
- A test passes even though an expect failed
require()stops the test – subsequent expects don’t run- Coverage is not reporting the right files
- xUnit output file is not created
- Unicode characters appear garbled in CI output
- Release Notes
- Maintainer Notes
Tested Python Versions¶
3.9.x
3.10.x
3.11.x
3.12.x
3.13.x
3.14.x