Skip to content

Commit 759e27c

Browse files
CCM-13342: Running python tests for documentation
1 parent ec45a81 commit 759e27c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/stage-2-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
with:
144144
name: Pytest Test Report
145145
path: 'test-results/**/pytest-report.xml'
146-
reporter: java-junit
146+
reporter: python-xunit
147147
fail-on-error: false
148148

149149
test-lint:

scripts/tests/unit.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,20 @@ 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 testsscripts/tests/unit.sh
20+
# Python projects - asyncapigenerator
21+
echo "Setting up and running asyncapigenerator tests..."
22+
make -C ./src/asyncapigenerator install-dev
23+
make -C ./src/asyncapigenerator coverage # Run with coverage to generate coverage.xml for SonarCloud
24+
25+
# Python projects - cloudeventjekylldocs
26+
echo "Setting up and running cloudeventjekylldocs tests..."
27+
make -C ./src/cloudeventjekylldocs install-dev
28+
make -C ./src/cloudeventjekylldocs coverage # Run with coverage to generate coverage.xml for SonarCloud
29+
30+
# Python projects - eventcatalogasyncapiimporter
31+
echo "Setting up and running eventcatalogasyncapiimporter tests..."
32+
make -C ./src/eventcatalogasyncapiimporter install-dev
33+
make -C ./src/eventcatalogasyncapiimporter coverage # Run with coverage to generate coverage.xml for SonarCloud
2134

2235
npm ci && \
2336
npm run test:unit --workspaces && \

0 commit comments

Comments
 (0)