Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamestalmage opened this issue Nov 6, 2015 · 0 comments
Open

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

jamestalmage opened this issue Nov 6, 2015 · 0 comments

Comments

@jamestalmage
Copy link
Contributor

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:[...]}
//    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant