Skip to content

Commit

Permalink
Also process FSpecify when unfocusing
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Feb 16, 2018
1 parent ae6829d commit df87dfe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions ginkgo/unfocus_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func unfocusSpecs([]string, []string) {
unfocus("Measure")
unfocus("DescribeTable")
unfocus("Entry")
unfocus("Specify")
}

func unfocus(component string) {
Expand Down
4 changes: 4 additions & 0 deletions integration/_fixtures/focused_fixture/focused_fixture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ var _ = Describe("FocusedFixture", 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("7 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("12 Passed"))
Ω(string(output)).Should(ContainSubstring("0 Skipped"))
})
})

Expand Down

0 comments on commit df87dfe

Please sign in to comment.