forked from friendica/php-json-ld
Add support for normalization test suite.
- Handle rdfn:Urgna2012EvalTest and rdfn:Urdna2015EvalTest. - Use nquads input format for normalization tests. - Support normalization test suite format with various tweaks. Compacting the data would eliminate most of these changes but can't rely on compact to work in the code that tests compact! So hard coded fixes are used. - Support 'entries' and 'sequence' for tests. - Support 'include' as filename without a .jsonld extension. - Support 'type' and '@type' as aliases. - Support 'id' and '@id' as aliases. - Support 'action' and 'input' as aliases. - Support 'result' and 'expect' as aliases. - No longer strip '#t' prefix from '#tNNN' ids. - Default to positive test if nothing specified. - Add normalization test to travis-ci config. - Fix container infrastructure flag from 'root' to 'sudo'. - Update README with new testing info.
This commit is contained in:
parent
57b3279718
commit
c63a5961fb
3 changed files with 133 additions and 29 deletions
11
README.md
11
README.md
|
|
@ -171,14 +171,16 @@ This library includes a sample testing utility which may be used to verify
|
|||
that changes to the processor maintain the correct output.
|
||||
|
||||
To run the sample tests you will need to get the test suite files by cloning
|
||||
the [json-ld.org repository][json-ld.org] hosted on GitHub:
|
||||
the `json-ld.org` and `normalization` repositories hosted on GitHub:
|
||||
|
||||
https://github.com/json-ld/json-ld.org
|
||||
- https://github.com/json-ld/json-ld.org
|
||||
- https://github.com/json-ld/normalization
|
||||
|
||||
Then run the PHPUnit test.php application and point it at the directory
|
||||
containing the tests.
|
||||
Then run the PHPUnit test.php application and point it at the directories
|
||||
containing the tests:
|
||||
|
||||
phpunit test.php -d {PATH_TO_JSON_LD_ORG/test-suite}
|
||||
phpunit test.php -d {PATH_TO_NORMALIZATION/tests}
|
||||
|
||||
[Digital Bazaar]: http://digitalbazaar.com/
|
||||
[JSON-LD]: http://json-ld.org/
|
||||
|
|
@ -187,4 +189,3 @@ containing the tests.
|
|||
[PHP]: http://php.net
|
||||
[RDFa]: http://www.w3.org/TR/rdfa-core/
|
||||
[RFC7159]: http://tools.ietf.org/html/rfc7159
|
||||
[json-ld.org]: https://github.com/json-ld/json-ld.org
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue