mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.2k stars 22.49k forks source link

Content suggestion: Documenting testing strategies #3917

Closed dontcallmedom closed 3 years ago

dontcallmedom commented 3 years ago

(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.

chrisdavidmills commented 3 years ago

This is a really good idea @dontcallmedom . I could imagine:

  1. An optional section being added to API landing pages titled something like "Testing strategies", which will explan high-level approaches to testing that API, what is needed, etc.
  2. A standard guide type called "Testing the ", which would be created as a child page of the main API landing page, and contain further information on more testing strategy specifics, if the information was too long to go in a subsection on the page itself.
  3. These sections/pages only being included in cases where the API requires some kind of special testing setup, or there are specific gotchas to know about. Cases where the answer isn't just "load your page in the browser you want to test it in".
wbamberg commented 3 years ago

@dontcallmedom and I had a call today about this, and here are my notes:


Overall scope

The 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: https://github.com/mdn/content/issues/3917#issuecomment-817705754) 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 testing

Another 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?

hamishwillee commented 3 years ago

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 ...