Pattern: Use of pending test
Issue: -
Used to discourage pending test. This test won't run while it's marked as pending.
Examples of correct code:
class TotoTests: QuickSpec {
override func spec() {
describe("foo") {
describe("bar") { }
context("bar") {
it("bar") { }
}
it("bar") { }
itBehavesLike("bar")
}
}
}
Examples of incorrect code:
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")
}
}