Content suggestion: Documenting testing strategies #559
Replies: 0 comments 6 replies
-
This is a really good idea @dontcallmedom . I could imagine:
|
Beta Was this translation helpful? Give feedback.
-
@dontcallmedom and I had a call today about this, and here are my notes: Overall scopeThe initial proposal is about testing strategies for specific Web APIs. But maybe it's worth expanding this out to how MDN documents testing in general. As such it might have a research component:
The other strand is about testing strategies for specific Web APIs that have particular testing requirements. Here we might (as Chris suggested: mdn/content#3917 (comment)) have a "Testing the ... API" guide under the overview page of such APIs.
How much detail should we go into for testing strategies?There's a big range which makes a big difference to the amount of work it is.
Which APIs are promising candidates?
Accessibility testingAnother possible item in here is accessibility testing, which would be very much in our remit, and for which we could certainly get help from OWD allies. This seems like a third possible strand, alongside (1)"overall Web testing strategies" and (2)"testing strategies for specific APIs". Research project?Should we consider for Q3, for this to be a research project that determines what testing-related content we are missing on MDN and prioritizes it? |
Beta Was this translation helpful? Give feedback.
-
Slightly hesitant to comment on this one. Here's my gut reaction anyway (perhaps worth moving this whole issue to a discussion):
And some impressions from my last 6 months ...
|
Beta Was this translation helpful? Give feedback.
-
)It might help to have one comment per topic, so we can properly thread here) Chiming in on the question of what is meant to be tested, I'd wonder, what kind of tests are we talking about here (in terms of testing pyramid). The above would make me think about unit or integration tests. I experienced a lack of guidance when I was working on web extensions (which turn out to be really hard to test end-to-end with tooling - or I missed the silver bullet somehow). Are there communities we could ask? I'm thinking of Cypress folks here. Back in angular/protractor#5502 the community also suggested several great projects that could be asked for feedback. A separate project to MDN would then allow to collaborate with the testing community. But we should think about the interface we would need to integrate the results and learnings. A JSON API, some Markdown files, iFrames or what-have-you. |
Beta Was this translation helpful? Give feedback.
-
(Not a very specific proposal yet, but more a fuzzy idea that would benefit from refining before making an actual RFC.)
What is the new suggestion?
Have a structured approach to documenting how to set up and run tests for Web technologies that need specific approaches, e.g. because of hardware integration à la WebNFC, WebBluetooth, Media Capture, WebXR, WebAuthn, or because they expose a different execution environment (*Workers, shaders in WebGL/WebGPU, WebAssembly, …)
Why is it important or useful?
A reasonable reading of the MDN Web Testing Report would be that it any friction that exists in the process of setting up and running tests make it more likely it won't get done or will get done poorly. MDN may have a role to play there by making the topic more prominent and spreading the word about practical approaches.
Beta Was this translation helpful? Give feedback.
All reactions