Skip to content

Commit

Permalink
Merge pull request #45 from danieljamesrees/fix_godog_tags
Browse files Browse the repository at this point in the history
Re-worked test-jenkins.yml
  • Loading branch information
danieljamesrees authored Jun 4, 2018
2 parents 43c5df2 + dd23555 commit 4e9ac72
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ci/tasks/test-jenkins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ run:
pushd /go/src
go get github.com/DATA-DOG/godog/cmd/godog
set -e
TAGS_STRING=""
if [[ -n "$TEST_TAGS" ]]; then
TAGS_STRING="-t $TEST_TAGS"
FEATURES_PATH="features/**/*.feature"
if [[ -z "$TEST_TAGS" ]]; then
godog $FEATURES_PATH
else
godog -t "$TEST_TAGS" $FEATURES_PATH # See godog --help, to understand how to apply tags.
fi
godog "$TAGS_STRING" features/**/*.feature # See godog --help, to understand how to apply tags.
popd

0 comments on commit 4e9ac72

Please sign in to comment.