Skip to content

Commit f69fc2e

Browse files
Tests for other python.
1 parent 1d50f5e commit f69fc2e

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

scripts/tests/unit.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ cd "$(git rev-parse --show-toplevel)"
1717
# tests from here. If you want to run other test suites, see the predefined
1818
# tasks in scripts/test.mk.
1919

20-
# run tests
20+
# run testsscripts/tests/unit.sh
2121

2222
npm ci && \
2323
npm run test:unit --workspaces && \
2424
cd docs && \
2525
./test.sh && \
2626
cd .. && \
2727
mkdir -p .reports && \
28-
TMPDIR="./.reports" ./node_modules/.bin/lcov-result-merger "**/.reports/unit/coverage/lcov.info" ".reports/lcov.info" --ignore "node_modules" --prepend-source-files --prepend-path-fix "../../.."
28+
TMPDIR="./.reports" ./node_modules/.bin/lcov-result-merger "**/.reports/unit/coverage/lcov.info" ".reports/lcov.info" --ignore "node_modules" --prepend-source-files --prepend-path-fix "../../.." && \
29+
echo "Combined converage is:" && \
30+
cat .reports/lcov.info

src/cloudeventjekylldocs/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/bash
2+
set -euo pipefail
3+
PYTHON=$1
4+
5+
cd ../.. && \
6+
$PYTHON -m pytest src/cloudeventjekylldocs/tests/ --cov=src/cloudeventjekylldocs --cov-config=src/cloudeventjekylldocs/pytest.ini --cov-report=html:src/cloudeventjekylldocs/htmlcov --cov-report=term-missing --cov-report=xml:src/cloudeventjekylldocs/coverage.xml

src/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ set -euo pipefail
44
cd ./asyncapigenerator && \
55
./test.sh python3 && \
66
cd .. && \
7+
78
cd ./eventcatalogasyncapiimporter && \
89
./test.sh python3 && \
910
cd .. && \
11+
12+
cd ./cloudeventjekylldocs && \
13+
./test.sh python3 && \
14+
cd .. && \
15+
1016
cd ./cloudevents && \
1117
npm run test:unit

0 commit comments

Comments
 (0)