Skip to content

Instantly share code, notes, and snippets.

@Great-Antique
Last active August 29, 2015 13:57
Show Gist options
  • Save Great-Antique/9546805 to your computer and use it in GitHub Desktop.
Save Great-Antique/9546805 to your computer and use it in GitHub Desktop.
Run Codeception tests with skip flag in Bamboo
#!/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