Skip to content

Commit

Permalink
feat: Saving test report as junit file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorquas authored and jirihnidek committed Sep 3, 2024
1 parent aed9d1d commit acf3c24
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions systemtest/tests/integration/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -eu
set -x
set -ux

# get to project root
cd ../../../
Expand All @@ -18,4 +17,11 @@ python3 -m venv venv

pip install -r integration-tests/requirements.txt

pytest -v integration-tests
pytest --junit-xml=./junit.xml -v integration-tests
retval=$?

if [ -d "$TMT_PLAN_DATA" ]; then
cp ./junit.xml "$TMT_PLAN_DATA/junit.xml"
fi

exit $retval

0 comments on commit acf3c24

Please sign in to comment.