mumuki / cspec

Small BDD framework for C/C++
GNU General Public License v3.0
106 stars 18 forks source link

Create the `fail` method #13

Closed jazcarate closed 7 years ago

jazcarate commented 7 years ago
context (example) {
    describe("Failure") {
        it("shouldFail") {
            fail("That's the test");
        } end
}

I don't have a better use case :smile_cat:

fedescarpa commented 7 years ago

I think you need to use skip in this cases instead of make a test that fails. A failing test is useless unless it was created by a template or wizard.