forked from BrunoLevy/geogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunpybot.sh.in
executable file
·29 lines (24 loc) · 1.19 KB
/
runpybot.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# Wrapper for the RobotFramework test runner
scriptdir=`dirname "$0"`
. "$scriptdir/testenv.sh" || exit 1
if robot $args ; then
> TESTS_SUCCESS
fi
# Some Jenkins plugins (like the Jenkins Performance Plugin) do not take
# testcase fullnames into account. Testnames with identical names but from
# different testsuites are considered a single testcase. This results in
# erroneous reports and graphs. We must patch the xunit file generated by
# RobotFramework and replace testcase names by their full names.
if [ -f xunit.xml ]; then
echo "Generating XUnit report with full testcase names"
perl "$VORPALINE_SOURCE_DIR/tools/jenkins/xunit_full_names.pl" xunit.xml > xunit_full_names.xml
fi
# Generate a Cobertura compatible coverage report
# This report will be digested by the Jenkins Cobertura Plugin to display
# coverage graphs
if [ "$VORPALINE_WITH_GCOV" = 1 ]; then
echo "Generating coverage report"
gcovr --xml --output=coverage.xml --verbose -r $VORPALINE_SOURCE_DIR/src $VORPALINE_BUILD_DIR > coverage.log
# gcovr --html --output=coverage.html --html-details --verbose -r $VORPALINE_SOURCE_DIR/src $VORPALINE_BUILD_DIR > coverage.log
fi