Skip to content

Commit

Permalink
add a test case for #415
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Dec 21, 2017
1 parent b977ede commit 65ca40e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions integration/_fixtures/fail_fixture/fail_fixture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@ var _ = Describe("Excercising different failure modes", func() {
println("NEVER SEE THIS")
}, 1)
})

var _ = Specify("a top level specify", func() {
Fail("fail the test")
})
7 changes: 6 additions & 1 deletion integration/fail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ var _ = Describe("Failing Specs", func() {
Ω(output).Should(ContainSubstring("a measure FAIL failure"))
Ω(output).Should(MatchRegexp(`Test Panicked\n\s+a measure panic`))

Ω(output).Should(ContainSubstring("0 Passed | 16 Failed"))
Ω(output).Should(ContainSubstring("a top level specify"))
Ω(output).ShouldNot(ContainSubstring("ginkgo_dsl.go"))
Ω(output).Should(ContainSubstring("fail_fixture_test.go:101"))
Ω(output).Should(ContainSubstring("fail_fixture_test.go:102"))

Ω(output).Should(ContainSubstring("0 Passed | 17 Failed"))
})
})
4 changes: 2 additions & 2 deletions integration/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ var _ = Describe("Flags Specs", func() {
output := string(session.Out.Contents())

Ω(output).Should(ContainSubstring("1 Failed"))
Ω(output).Should(ContainSubstring("15 Skipped"))
Ω(output).Should(ContainSubstring("16 Skipped"))
})

Context("with a flaky test", func() {
Expand All @@ -187,7 +187,7 @@ var _ = Describe("Flags Specs", func() {
output := string(session.Out.Contents())

Ω(output).Should(ContainSubstring("synchronous failures"))
Ω(output).Should(ContainSubstring("16 Specs"))
Ω(output).Should(ContainSubstring("17 Specs"))
Ω(output).Should(ContainSubstring("0 Passed"))
Ω(output).Should(ContainSubstring("0 Failed"))
})
Expand Down

0 comments on commit 65ca40e

Please sign in to comment.