Created
November 2, 2025 01:05
-
-
Save disouzam/cc8162f5da12b070e63989605f7ec296 to your computer and use it in GitHub Desktop.
Mutation testing in Python using Cosmic Ray library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # set -o xtrace | |
| PS4='${LINENO}: ' | |
| source .venv/Scripts/activate | |
| echo -e "Virtual environment: $VIRTUAL_ENV" && python --version | |
| echo "" | |
| cosmic-ray --verbosity=DEBUG baseline .vscode/cosmic-ray.toml | |
| cosmic-ray --verbosity=DEBUG exec .vscode/cosmic-ray.toml .vscode/cosmic-ray.sqlite | |
| cr-report .vscode/cosmic-ray.sqlite --no-show-output --no-show-pending --show-diff | |
| cr-html .vscode/cosmic-ray.sqlite --skip-success > .vscode/cosmic-ray.html | |
| ROOT_DIR=$(pwd) | |
| start msedge "$ROOT_DIR/.vscode/cosmic-ray.html" | |
| deactivate |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Official docs: https://cosmic-ray.readthedocs.io/en/latest
Repository: https://github.com/sixty-north/cosmic-ray