Where can I find up-to-date documentation on supported BDD style testing?

34 views
Skip to first unread message

Carl Erik Kopseng

unread,
Jul 11, 2013, 12:37:38 PM7/11/13
to bust...@googlegroups.com
I like the BDD style of expressing expectations, but I would like some documentation to refer to. That seems to be hard, as much of what I can find seems to be outdated and no longer work (like the "should" in http://cjohansen.no/talks/2011/busterjs/#89). The only place I could actually see a list of what was supported was by grepping the code and looking through the code in buster-assertions.js:
        expectation: "toBe",
        expectation: "toEqual",
        expectation: "toBeGreaterThan",
        expectation: "toBeLessThan",
        expectation: "toBeDefined",
        expectation: "toBeNull",
        expectation: "toMatch",
        expectation: "toBeObject",
        expectation: "toBeFunction",
        expectation: "toBeTrue",
        expectation: "toBeFalse",
        expectation: "toBeString",
        expectation: "toBeBoolean",
        expectation: "toBeNumber",
        expectation: "toBeNaN",
        expectation: "toBeArray",
        expectation: "toBeArrayLike",
        expectation: "toBeNear",
        expectation: "toHavePrototype",
        expectation: "toContain",
        expectation: "toHaveTagName",
        expectation: "toHaveClassName"

This is not exactly newbie-friendly, so is there some docs out there that I have been unable to find? For instance on what functions are chainable, more examples, etc.

Regards
Carl-Erik

August Lilleaas

unread,
Aug 27, 2013, 6:47:08 AM8/27/13
to bust...@googlegroups.com
Hey,

Thanks for the reminder :) We want the docs to be comprehensive, and BDD
docs are indeed missing.

can you create an issue in the issue tracker for this? That's the
easiest way to ensure that documentation gets written.

https://github.com/busterjs/buster/issues
> --
> You received this message because you are subscribed to the Google
> Groups "Buster.JS" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to busterjs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Daniel Wittner

unread,
Sep 4, 2013, 1:55:57 PM9/4/13
to bust...@googlegroups.com
You can find a list of the predefined expectations here.
Reply all
Reply to author
Forward
0 new messages