-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Include assertions in TAP output #324
Comments
I am 👍 for this, but it takes us towards verbose mode, which was controversial. Personally, I think once we get TAP in place, it's output should be verbose (showing every assertion, passing or failing). It should be the responsibility of reporters to suppress output they feel is overly verbose. |
AVA's default output won't change, this is only needed for TAP output. But yes, it is a step forward towards verbose mode. |
I was under the assumption that our default output would simply be our own custom TAP reporter. |
Nope, this issue does not make such assumptions, it's only about tracking assertions. Perhaps we should discuss this after TAP support is landed in master. |
Yep, actual code would be easier to discuss. Are you able to land TAP support without this issue being fixed? |
I can only submit a PR, but I wouldn't want to merge it to master without solving this issue. |
let's do that. |
@vdemedes, @jamestalmage: This would be really easy to do once #360 lands. So once #360 lands, I can take this on. |
@jamestalmage, @vdemedes, @sindresourhus: ok, now that #360 is merged, should I start working on this? |
I'd ask you to hold off. I already started pursuing that in #340, but put it on hold until tap support landed (done), and until @twada and I can find consensus on which parts #360 will certainly make this easy, so thanks for that. If you can find something else to work on that would be great. |
Sure. :) |
Do you mean |
Yes. #340 was an initial stab at it. If you run AVA's test suite with
With
|
Ohhhh that makes sense. And is awesome. |
While I was working on TAP support, I realized reporters want to know the assertions for each test. At the moment, test title just duplicated as an assertion.
As you see on the screenshot, it results in a double test title.
It happens in tap-spec, tap-difflet & tap-min reporters at least. Other reporters are ok.
So what we need now, is to collect information about each test's assertions (in
Test
class), so that we output meaningful results for TAP reporters. Plus, it would probably benefit future integrations (e.g. with text editors).The text was updated successfully, but these errors were encountered: