mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks) - Update UI and core actions to use ~/.prole/build and shared copy helper - Add/adjust tests and scripts; introduce knoe ops helpers and update manifests Co-authored-by: Junie <junie@jetbrains.com>
18 lines
577 B
Bash
Executable File
18 lines
577 B
Bash
Executable File
#!/bin/bash
|
|
# Run all unit tests and generate a coverage report
|
|
|
|
export PYTHONPATH=$PYTHONPATH:.
|
|
|
|
# Check if pytest-cov is installed
|
|
if pytest --trace-config | grep -q "pytest_cov"; then
|
|
echo "Running tests with coverage..."
|
|
pytest --cov=knoe --cov=install --cov-report=term-missing --cov-report=html tests/
|
|
RET=$?
|
|
echo "Coverage report (HTML) generated in htmlcov/index.html"
|
|
exit $RET
|
|
else
|
|
echo "Warning: pytest-cov not found. Running tests without coverage."
|
|
echo "To enable coverage, install it via: pip install pytest-cov"
|
|
pytest tests/
|
|
fi
|