From 134d3327934fc42acd2053f7605330ce6929da71 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Thu, 5 Feb 2015 19:41:43 -0800 Subject: [PATCH] Move verbosity flag into driver.go, randomize specs Before we get too many suites baked, I want to get spec randomization in, just so no one accidentally thinks things flow from top to bottom. The random seed is printed with every run: Random Seed: 1423194521 - Will randomize all specs and can be reproduced using --ginkgo.seed --- hack/ginkgo-e2e.sh | 1 - test/e2e/driver.go | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hack/ginkgo-e2e.sh b/hack/ginkgo-e2e.sh index c0ef4c57f82..8af313b066b 100755 --- a/hack/ginkgo-e2e.sh +++ b/hack/ginkgo-e2e.sh @@ -102,6 +102,5 @@ fi "${e2e}" "${auth_config[@]:+${auth_config[@]}}" \ --host="https://${KUBE_MASTER_IP-}" \ --provider="${KUBERNETES_PROVIDER}" \ - --ginkgo.v \ ${E2E_REPORT_DIR+"--report_dir=${E2E_REPORT_DIR}"} \ "${@}" diff --git a/test/e2e/driver.go b/test/e2e/driver.go index 95c4b84e0f8..50b5479354d 100644 --- a/test/e2e/driver.go +++ b/test/e2e/driver.go @@ -35,6 +35,12 @@ func init() { // Turn off colors by default to make it easier to collect console output in Jenkins // Override colors off with --ginkgo.noColor=false in the command-line config.DefaultReporterConfig.NoColor = true + + // Turn on verbose by default to get spec names + config.DefaultReporterConfig.Verbose = true + + // Randomize specs as well as suites + config.GinkgoConfig.RandomizeAllSpecs = true } func (t *testResult) Fail() { *t = false }