In case someone using the Ginkgo BDD infrastructure for Go has the same problem, this can be achieved in this structure by marking the test specification as focused ( see documents ), adding F before that, Context or Describe functions.
So, if you have a specification:
It("should be idempotent", func() {
You rewrite it as:
FIt("should be idempotent", func() {
And it will work with just one specification:
[Fail] testing Migrate setCurrentDbVersion [It] should be idempotent ... Ran 1 of 5 Specs in 0.003 seconds FAIL! -- 0 Passed | 1 Failed | 0 Pending | 4 Skipped
Bunyk
source share