-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate execution of Go integration tests and kuttl integration tests (
#1647) * Separate execution of Go integration tests and kuttl integration tests in Makefile so running a single suite is easier Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
- Loading branch information
1 parent
88295ec
commit 0a55697
Showing
5 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
INTEGRATION_OUTPUT_JUNIT=${INTEGRATION_OUTPUT_JUNIT:-false} | ||
TEST_ONLY=${TEST_ONLY:+"--test $TEST_ONLY"} | ||
|
||
if [ "$INTEGRATION_OUTPUT_JUNIT" == true ] | ||
then | ||
echo "Running integration tests with junit output" | ||
mkdir -p reports/ | ||
go get github.com/jstemmer/go-junit-report | ||
go run ./cmd/kubectl-kudo test --config test/kudo-integration-test.yaml ${TEST_ONLY} 2>&1 |tee /dev/fd/2 |go-junit-report -set-exit-code > reports/kudo_test_report.xml | ||
else | ||
echo "Running integration tests without junit output" | ||
go run ./cmd/kubectl-kudo test --config test/kudo-integration-test.yaml ${TEST_ONLY} | ||
fi |
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