Skip to content

record / playback of all assertions (not just failed ones). #18

@jamestalmage

Description

@jamestalmage

Helpful for assertion libraries that do not throw when they reach the first failed assertion, but try every assertion possible (like tap and ava).

assert._reset(); //clear log of assertions

assert.ok(two + two === 4);
assert.ok(three + two === 5);
assert.ok(four + two === 6);

assert._callStack();
// => [
//      {content: 'assert.ok(two + two === 4);', args:[...]},
//      {content: 'assert.ok(three + two === 5);', args:[...]},
//      {content: 'assert.ok(four + two === 6);', args:[...]}
//    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions