This issue is intended to raise and track the question of whether a set of component-focused .json test files would be a useful addition to the current group of test files:
The "specification" test file has a cross-section of tests without any strong pattern. I think this is meant to be tests that are common to all types, while the tests/types are for each PURL type.
@jkowalleck recently opened PR 738 (#738) comprising a set of tests focused on the qualifiers component, which seems like a useful way to group tests. This PR raises some important questions:
- Does it make sense to create a separate file in
tests/spec for each component?
- What tests belong in
tests/spec/specification-test.json if we have component-level spec tests?
A broader open question is: What is the relationship between specification and type tests? Based on the current set of type tests, most are a combination of:
- Tests where the input is type-specific
- Tests for PURL type rules such as: no namespace allowed or type-specific qualifiers
This issue is intended to raise and track the question of whether a set of component-focused .json test files would be a useful addition to the current group of test files:
The "specification" test file has a cross-section of tests without any strong pattern. I think this is meant to be tests that are common to all types, while the
tests/typesare for each PURL type.@jkowalleck recently opened PR 738 (#738) comprising a set of tests focused on the
qualifierscomponent, which seems like a useful way to group tests. This PR raises some important questions:tests/specfor each component?tests/spec/specification-test.jsonif we have component-level spec tests?A broader open question is: What is the relationship between
specificationandtypetests? Based on the current set oftypetests, most are a combination of: