Show duration for each ginkgo test and test speed improvements

Because our tests are getting so long, we want to be able to audit which tests are taking
the longest to complete.  This may indicate a bad test, bad CI, bad code, etc and therefore
should be auditable.

Also, make speed improvements to tests by making sure we only unpack caches images that
actually get used.

Signed-off-by: baude <bbaude@redhat.com>

Closes: #1178
Approved by: mheon
This commit is contained in:
baude
2018-07-28 11:11:31 -05:00
committed by Atomic Bot
parent a4a667eac9
commit 433cbd5254
58 changed files with 233 additions and 50 deletions

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman namespaces", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman namespace test", func() {