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

Mixed assertions [with AVA] not being counted #2

Closed
JaKXz opened this issue Jan 1, 2016 · 3 comments
Closed

Mixed assertions [with AVA] not being counted #2

JaKXz opened this issue Jan 1, 2016 · 3 comments

Comments

@JaKXz
Copy link

JaKXz commented Jan 1, 2016

Since AVA is really cool but doesn't have all the assertions that chai does, I find myself mixing assertions in my tests. In my refactoring I am trying to stick to one assertion per test, but we'll ignore the philosophical argument for now.

Is this an AVA issue?

@zoubin
Copy link
Owner

zoubin commented Jan 2, 2016

@JaKXz Could you provide an repro case? I'd like to look into it

@JaKXz
Copy link
Author

JaKXz commented Jan 2, 2016

@zoubin here you go: https://gist.github.com/JaKXz/c676f6b5493b0ce90225

I think you'll just need to npm install chai ava and run ./node_modules/.bin/ava test.js --tap | tap-summary

EDIT: download and run npm install && npm test

@JaKXz
Copy link
Author

JaKXz commented Jan 2, 2016

@zoubin I took a closer look with the tap-out module, and I think it's AVA's TAP output's fault. Thanks for taking some time! :)

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

2 participants