Skip to content

Commit

Permalink
Merge pull request #434 from mezis/blur-specify
Browse files Browse the repository at this point in the history
Also process FSpecify and FWhen when unfocusing
  • Loading branch information
williammartin committed Feb 16, 2018
2 parents ae6829d + ee65bdb commit 9008c7b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ginkgo/unfocus_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func unfocusSpecs([]string, []string) {
unfocus("Measure")
unfocus("DescribeTable")
unfocus("Entry")
unfocus("Specify")
unfocus("When")
}

func unfocus(component string) {
Expand Down
10 changes: 10 additions & 0 deletions integration/_fixtures/focused_fixture/focused_fixture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,20 @@ var _ = Describe("FocusedFixture", func() {
})
})

FWhen("focused", func() {
It("focused", func() {

})
})

FIt("focused", func() {

})

FSpecify("focused", func() {

})

FMeasure("focused", func(b Benchmarker) {

}, 2)
Expand Down
8 changes: 4 additions & 4 deletions integration/subcommand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,17 +354,17 @@ var _ = Describe("Subcommand", func() {
Eventually(session).Should(gexec.Exit(types.GINKGO_FOCUS_EXIT_CODE))
output := session.Out.Contents()

Ω(output).Should(ContainSubstring("6 Passed"))
Ω(output).Should(ContainSubstring("5 Skipped"))
Ω(string(output)).Should(ContainSubstring("8 Passed"))
Ω(string(output)).Should(ContainSubstring("5 Skipped"))

session = startGinkgo(pathToTest, "blur")
Eventually(session).Should(gexec.Exit(0))

session = startGinkgo(pathToTest, "--noColor")
Eventually(session).Should(gexec.Exit(0))
output = session.Out.Contents()
Ω(output).Should(ContainSubstring("11 Passed"))
Ω(output).Should(ContainSubstring("0 Skipped"))
Ω(string(output)).Should(ContainSubstring("13 Passed"))
Ω(string(output)).Should(ContainSubstring("0 Skipped"))
})
})

Expand Down

0 comments on commit 9008c7b

Please sign in to comment.