Re: test coverage data for XHR spec

On 10/6/14 7:51 AM, Hallvord R. M. Steen wrote:
> To test the outcome, load http://www.w3.org/TR/XMLHttpRequest/ and run this from the browser's dev tools' console:
>
> document.body.appendChild(document.createElement('script')).src='http://hallvord.com/temp/xhr/annotate_spec.js'
>
> You may have to disable mixed content blocking in your browser if the spec loads over https.
>
> To be clear: the expected effect of running the script is
>
> 1) Every assertation that have at least one associated test, get a light green background
> 2) One or more link(s) to relevant test(s) are added after each assertation.
>
> As I said, some of the meta data is subtly outdated - this is especially evident in the "open method" section, where most links are off by one LI (clearly, we spec authors added a LI since the meta data was edited). I will find some time to review and fix such issues. Also, sections that are in fact being tested may lack annotations.
>
> In any case, hopefully the net outcome of this experiment is that we can state with a lot of confidence that we have a high test coverage for our spec, and that we can push coverage further by identifying corners that remain un-tested.
>
> Please test and comment :)

This is really cool Hallvord (and sorry for the delayed response).

Wondering aloud ... adding this functionality to some of what I'll 
characterize as "more foundational / horizontal" specs (f.ex. DOM, Web 
IDL, ...) would be nice. Any takers out there to help with such an effort?

-Thanks, AB

Received on Saturday, 18 October 2014 13:41:16 UTC