Quick Discouraged Focused Test

Non-focused tests won’t run as long as this test is focused

  • Identifier: quick_discouraged_focused_test
  • Enabled by default: No
  • Supports autocorrection: No
  • Kind: lint
  • Analyzer rule: No
  • Minimum Swift compiler version: 5.0.0
  • Default configuration:
    KeyValue
    severity 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")
   }
}
class TotoTests: QuickSpecSubclass {
   override func spec() {
       fitBehavesLike("foo")
   }
}