Skip to content

Test suite should better support 1.0 libraries. #489

Closed
@davidlehn

Description

@davidlehn

The test suite currently mixes 1.0 and 1.1 tests. It is difficult to use the test suite with 1.0 libs that have not yet updated to 1.1 support. There is a "processingMode" option that can be set to json-ld-1.0 or json-ld-1.1 but in some cases this is set to 1.0 on purpose to test 1.1 features (see tp002 and tp005 in https://github.com/json-ld/json-ld.org/blob/master/test-suite/tests/error-manifest.jsonld). This issue might be resolved with more explicit marking of 1.1 tests separate from the processing mode.

One option might be to add a "version" option for all 1.1 tests so a 1.0 lib could skip all 1.1 tests via a simple filter. The current "processingMode" would more directly map to the API option of the same name and could perhaps default to the version unless explicitly set otherwise.

See also:
digitalbazaar/jsonld.js#172
digitalbazaar/jsonld.js#179
7374dff#commitcomment-21885156

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions