Commit graph

18 commits

Author SHA1 Message Date
David I. Lehn d832d72b09 Remove unneeded FIXME. 2015-10-13 14:09:42 -04:00
David I. Lehn e98b8f61ba Group tests by test suite.
- Grouping the tests by test suite to avoid warning failures when there
  are no test in a suite. Requires the use of the phpunit `--group`
  flag.
2015-10-13 14:08:27 -04:00
David I. Lehn c63a5961fb 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.
2015-10-13 13:38:56 -04:00
Dave Longley 237a405175 Make it easier to run local (non-official) json-ld tests. 2014-12-04 14:45:17 -05:00
Dave Longley cbefb2d662 Implement addRiskyTest() for phpunit 4.x. 2014-07-08 14:14:09 -04:00
Dave Longley 1aac75aab7 Switch style to same-line bracket w/else and catch. 2014-04-24 14:39:30 -04:00
Dave Longley 907904183d Provide access to test result via test instead of earl report.
- Reduces memory consumption because global state is serialized
  for every test and the test result is large (do not link it to
  the earl report listener as it is global).
2013-09-15 16:19:22 -04:00
Dave Longley 3f4dc75ac5 Do not attach earl report as listener if no filename specified. 2013-09-15 16:01:10 -04:00
Dave Longley d59ffc65bf Implement http link header processing w/default document loader.
- Use default document loader when testing remote documents.
2013-09-15 15:54:54 -04:00
Dave Longley f84cf6c2fc Read quads (do not use url). 2013-09-15 00:16:18 -04:00
Dave Longley 0e37dd4388 Make earl report a test result printer. 2013-09-14 22:19:07 -04:00
Dave Longley 86908c8e4f Fix typo. 2013-09-14 22:10:35 -04:00
Dave Longley 7142d8a3e1 Fix typos. 2013-09-14 22:02:37 -04:00
Dave Longley 4ddb4e8c2c Validate URLs; check for file/json read errors. 2013-09-14 21:27:55 -04:00
Dave Longley d85c25bdb3 Improve failed test output; fix typo. 2013-09-14 21:08:40 -04:00
Dave Longley 780ed7e6ab Use input url not doc; use link header parsed result as an object. 2013-09-14 14:46:00 -04:00
Dave Longley 82e93347c1 Fix typo. 2013-09-13 13:07:05 -04:00
Dave Longley f5eeb7c3ad Rewrite test runner.
- Use PHPUnit. There are many different ways to use PHPUnit,
  unfortunately, none of them seem to fit quite right with
  the JSON-LD test suite -- without requiring a lot of extra
  and/or duplicated effort. A middle ground was chosen.
2013-09-13 12:47:15 -04:00