Re: Fun with LDP spec annotations -- test coverage

El 21/07/14 05:07, Steve Speicher escribió:
> 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

Very nice! :)

-- 

Dr. Raúl García Castro
http://www.garcia-castro.com/

Ontology Engineering Group
Departamento de Inteligencia Artificial
Escuela Técnica Superior de Ingenieros Informáticos
Universidad Politécnica de Madrid
Campus de Montegancedo, s/n - Boadilla del Monte - 28660 Madrid
Phone: +34 91 336 65 96 - Fax: +34 91 352 48 19

Received on Monday, 21 July 2014 07:09:16 UTC