Last active
August 29, 2015 13:57
-
-
Save Great-Antique/9546805 to your computer and use it in GitHub Desktop.
Run Codeception tests with skip flag in Bamboo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ $1 == "skip" ]; then | |
echo "Skip tests" | |
mkdir -p tests/_log | |
touch tests/_log/fake_report.xml | |
printf "<?xml version="1.0" encoding="UTF-8"?>\n<testsuites>\n\t<testsuite name="fake" tests="0" assertions="0" failures="0" errors="0" time="0">\n\t</testsuite>\n</testsuites>" >> tests/_log/fake_report.xml | |
else | |
codecept "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment