quick_discouraged_focused_test - ApplebaumIan/BitbucketAPI GitHub Wiki

Quick Discouraged Focused Test

Discouraged focused test. Other tests won't run while this one is focused.

  • Identifier: quick_discouraged_focused_test
  • Enabled by default: Disabled
  • Supports autocorrection: No
  • Kind: lint
  • Analyzer rule: No
  • Minimum Swift compiler version: 3.0.0
  • Default configuration: warning

Non Triggering Examples

class TotoTests: QuickSpec {
   override func spec() {
       describe("foo") {
           describe("bar") { }
           context("bar") {
               it("bar") { }
           }
           it("bar") { }
           itBehavesLike("bar")
       }
   }
}

Triggering Examples

class TotoTests: QuickSpec {
   override func spec() {
       ↓fdescribe("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       ↓fcontext("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       ↓fit("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       describe("foo") {
           ↓fit("bar") { }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       context("foo") {
           ↓fit("bar") { }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       describe("foo") {
           context("bar") {
               ↓fit("toto") { }
           }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       ↓fitBehavesLike("foo")
   }
}