-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Switch testing to tape #16
Conversation
This is primarily to support a future addition of airtap which relies on tape.
Why is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tape
doesn't have Istanbul coverage builtin, at some point I think that should be good to have coverage in our CI. nyc
should be installed manually to support the coverage. Also, I don't see why tap
is not usable.
airtap uses tape. It’s in their demo, in their dependencies. I am unfamiliar how to integrate airtap with tap, if I run as is, it crashes. airtap comes with nyc and coverage already, so perhaps that will resolve your concerns. Or not, I don’t know. If you prefer tap to tape, then either one needs to find how to integrate airtap with tap, or choose a different tool to run browser testing, see #14 and #21. |
In theory Airtap integrates with any test harness that produces TAP output using |
I have tried using airtap as their starting guide suggests, where the airtap is the top-level executable that runs the test file itself. I am not sure I understand how the alternative workflow would work. TAP is test output format, is it not? But we want not just the output, we want to run the tests themselves in airtap. The error itself is probably not useful. But perhaps I don’t know how to run airtap with tap.
|
I would include this change in PR #21, since it is related to it, and if |
I apologize for being a little confused. Could make it very clear to me when you’re having a discussion and providing a personal opinion vs when you have made a decision as a community of maintainers that we can follow through with? Thanks. |
@denis-sokolov In a nutshell (at risk of derailing this thread): Airtap monkeypatches
It's very useful, because |
@denis-sokolov This is a good practice in general - keeping cohesive changes in a single PR, so that in the future it is easier to see which changes happened for what reason, in context. Sorry if the way it was phrased sounded like a personal attack; I think the sentiment behind the message is generally shared by the maintainer team. Each PR should provide an atomary, incremental improvement, and in this case it really feels like this is not a standalone improvement but merely a part of #15 and #21, since it only brings value when combined with all of them. |
Just to provide a bit of clarification with regards to this particular request. It is not uncommon to phrase direct requests as indirect observations ( If you are curious about this subject, I would recommend reading up on nonviolent communication and indirect communication, e. g. https://socialcommunication.truman.edu/attitudes-emotions/polite-indirect/ |
Closing in favor of continuing the conversation in #21. @vweevers, I appreciate the insight in how Airtap works internally. Explains why you had an expectation that it could work, which was previously deeply perplexing to me. @kibertoad, I appreciate the clarity on the preference for this to be merged in to #21. For what it’s worth, I think your opinion that this case is clear cut best practice may be up for reconsideration. There’s a sliding scale of different trade-offs choosing how to atomize changesets and you could see others having different judgement calls about these uncountable preferences. @kibertoad, I also appreciate the explanation behind the communication style. Needless to say, the global cultural differences we come from mean we need to be cautious and clear. |
@denis-sokolov I agree, it is, indeed, subjective. |
I totally agree with @kibertoad
I would just add to the discussion here, that all the decisions are shared and discussed publicly following the consunsu seeking process. |
This is primarily to support a future addition of airtap which relies on tape and from limited testing does not work with tap.
Both projects seem to be supported and popular, the API similar, it seems the primary way of choosing between the two is a matter of taste and required advanced functionality. (example)
Our existing suite works fine with both, we do not rely on any advanced functionality.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct