https://github.com/inflectra/spira-testing-pytest
https://github.com/inflectra/spira-testing-pytest
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/inflectra/spira-testing-pytest
- Owner: Inflectra
- License: mit
- Created: 2021-04-18T15:01:52.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T18:12:46.000Z (over 2 years ago)
- Last Synced: 2025-03-01T18:42:47.591Z (over 1 year ago)
- Language: Python
- Size: 136 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyTest Extension for SpiraTest
This version of the plugin is compatible with Python 3.x and SpiraTest/SpiraTeam/SpiraPlan 6.+
The latest documentation for using this extension can be found at http://spiradoc.inflectra.com/Unit-Testing-Integration/Integrating-with-PyTest/
## Performance Optimization
The plugin is optimized to have **zero overhead** when disabled. If you're not using Spira integration, you can disable it in several ways:
### Option 1: CLI Flag (Fastest - Zero Overhead)
```bash
pytest --spira-disabled
```
### Option 2: Configuration File
Set `enabled = false` in your `spira.cfg`:
```ini
[settings]
enabled = false
```
### Option 3: Remove Config Files
If you're not using Spira at all, simply don't include `spira.cfg` or `.env.spira` files in your project.
### Performance Notes
- When disabled, the plugin performs minimal checks and exits immediately
- No configuration parsing or file I/O occurs after the first test when disabled
- Tests run at full speed with no measurable overhead from the plugin