Re: Fun with LDP spec annotations -- test coverage

hello Steve, 

that looks really good ! 

Roger



On 21 Jul 2014, at 04:07, Steve Speicher wrote:

> In working with the small team on the LDP testsuite, we had the idea that it would be nice if we could annotate the spec with information from the testsuite.  So one of the team members (thanks Sam) hacked it up and I have added the script to the current spec in Mercurial [1].
> 
> How to see it: 
>   There is a checkbox floating in top right under the ReSpec box, check it to see annotations.  It will write a box around each spec requirement with different colored background, it also indicates the type of test (automated, manual, etc) and which test cases cover it.  Quick check with Chrome and Firefox on my Mac worked as expected.
> 
> How it works:
>   Just a little JavaScript and CSS that reads in the EARL report JSON-LD test suite coverage manifest file[2].  Update the JSON-LD file, and the cover will be updated.
> 
> This is just something hacked together for ldp.html but we found it very useful.  As we work on the Paging spec, seems like it would be handy there as well.
> 
> [1]: https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp.html
> [2]: https://dvcs.w3.org/hg/ldpwg/raw-file/default/tests/reports/ldp-earl-manifest-all.jsonld
> 
> Enjoy,
> Steve Speicher
> http://stevespeicher.me

Received on Monday, 21 July 2014 08:49:02 UTC