Re: Fun with LDP spec annotations -- test coverage

Really cool, Steve and Samuel!

On 21/07/14 05: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
>

-- 
Sergio Fernández
Senior Researcher
Knowledge and Media Technologies
Salzburg Research Forschungsgesellschaft mbH
Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
T: +43 662 2288 318 | M: +43 660 2747 925
sergio.fernandez@salzburgresearch.at
http://www.salzburgresearch.at

Received on Monday, 21 July 2014 10:32:44 UTC