mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-07-31 10:37:40 -04:00
test: Add HTTP/WS server test coverage
Add black-box integration tests for the HTTP/WS server and rtl_tcp, plus a gcov coverage helper and supporting CI wiring. Refs: #3541 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Christian W. Zuckschwerdt
parent
3ca23d5a8a
commit
7a04dbdec9
22
.github/workflows/check.yml
vendored
22
.github/workflows/check.yml
vendored
@@ -78,6 +78,28 @@ jobs:
|
||||
run: |
|
||||
./tests/symbolizer.py check
|
||||
|
||||
coverage_check_job:
|
||||
runs-on: ubuntu-latest
|
||||
name: Run tests with code coverage
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Setup
|
||||
run: |
|
||||
sudo apt-get update -q -y
|
||||
sudo apt-get install -q -y --no-install-recommends cmake gcovr curl python3
|
||||
- name: Build with coverage and run tests
|
||||
# Builds with -DENABLE_COVERAGE=ON, runs ctest (incl. the HTTP server
|
||||
# integration/dataflow/ws tests), and writes an HTML report. Exits
|
||||
# non-zero if any test fails.
|
||||
run: ./tests/coverage.sh "$GITHUB_WORKSPACE/build-coverage"
|
||||
- name: Upload coverage report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-report
|
||||
path: build-coverage/coverage-report
|
||||
if-no-files-found: warn
|
||||
|
||||
analyzer_check_job:
|
||||
# https://github.com/actions/virtual-environments
|
||||
# - Ubuntu 24.04 ubuntu-24.04
|
||||
|
||||
Reference in New Issue
Block a user