Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage report #13

Merged
merged 1 commit into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True

[paths]
source =
nginx_analysis/*
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- name: Run general testsuite
run: ./runtests.sh
shell: bash
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
linter:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
__pycache__
.mypy_cache
*.pyc
.coverage
coverage.xml

# Build artifacts
*.egg-info
Expand Down
1 change: 1 addition & 0 deletions requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ docker-compose
pre-commit

pytest
coverage
4 changes: 3 additions & 1 deletion runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ if [[ ! $($NGINX_EXEC command -v pytest) ]]; then
$NGINX_EXEC python3 -m pip install pytest
fi

$NGINX_EXEC python3 -m pytest
$NGINX_EXEC coverage run -m pytest
$NGINX_EXEC coverage report
$NGINX_EXEC coverage xml -o coverage.xml
$NGINX_EXEC ./scripts/integration_tests.sh