-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfocus command ignores "vendor" folder
Fixes #424
- Loading branch information
Andrea Nodari
authored and
Andrea Nodari
committed
Apr 19, 2018
1 parent
5b0165e
commit c556e43
Showing
9 changed files
with
174 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file should remain the same, regardless the fact that contains FIt, FDescribe, or FWhen. |
13 changes: 13 additions & 0 deletions
13
integration/_fixtures/focused_fixture_with_vendor/focused_fixture_suite_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package focused_fixture_test | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
|
||
"testing" | ||
) | ||
|
||
func TestFocused_fixture(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Focused_fixture Suite") | ||
} |
73 changes: 73 additions & 0 deletions
73
integration/_fixtures/focused_fixture_with_vendor/focused_fixture_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package focused_fixture_test | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/ginkgo/extensions/table" | ||
) | ||
|
||
var _ = Describe("FocusedFixture", func() { | ||
FDescribe("focused", func() { | ||
It("focused", func() { | ||
|
||
}) | ||
}) | ||
|
||
FContext("focused", func() { | ||
It("focused", func() { | ||
|
||
}) | ||
}) | ||
|
||
FWhen("focused", func() { | ||
It("focused", func() { | ||
|
||
}) | ||
}) | ||
|
||
FIt("focused", func() { | ||
|
||
}) | ||
|
||
FSpecify("focused", func() { | ||
|
||
}) | ||
|
||
FMeasure("focused", func(b Benchmarker) { | ||
|
||
}, 2) | ||
|
||
FDescribeTable("focused", | ||
func() {}, | ||
Entry("focused"), | ||
) | ||
|
||
DescribeTable("focused", | ||
func() {}, | ||
FEntry("focused"), | ||
) | ||
|
||
Describe("not focused", func() { | ||
It("not focused", func() { | ||
|
||
}) | ||
}) | ||
|
||
Context("not focused", func() { | ||
It("not focused", func() { | ||
|
||
}) | ||
}) | ||
|
||
It("not focused", func() { | ||
|
||
}) | ||
|
||
Measure("not focused", func(b Benchmarker) { | ||
|
||
}, 2) | ||
|
||
DescribeTable("not focused", | ||
func() {}, | ||
Entry("not focused"), | ||
) | ||
}) |
4 changes: 4 additions & 0 deletions
4
integration/_fixtures/focused_fixture_with_vendor/vendor/foo/bar/bar.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package vendored | ||
|
||
func FContext() { | ||
} |
4 changes: 4 additions & 0 deletions
4
integration/_fixtures/focused_fixture_with_vendor/vendor/foo/foo.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package vendored | ||
|
||
func FIt() { | ||
} |
5 changes: 5 additions & 0 deletions
5
integration/_fixtures/focused_fixture_with_vendor/vendor/vendored.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package vendored | ||
|
||
func FDescribe() int { | ||
return 42 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters