Quick Discouraged Pending Test

This test won’t run as long as it’s marked pending

  • Identifier: quick_discouraged_pending_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() {
       xdescribe("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       xcontext("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       xit("foo") { }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       describe("foo") {
           xit("bar") { }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       context("foo") {
           xit("bar") { }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       describe("foo") {
           context("bar") {
               xit("toto") { }
           }
       }
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       pending("foo")
   }
}
class TotoTests: QuickSpec {
   override func spec() {
       xitBehavesLike("foo")
   }
}
class TotoTests: QuickSpecSubclass {
   override func spec() {
       xitBehavesLike("foo")
   }
}