[PR]: Add Test Specification - #156
Conversation
… feature/test-specification
|
I’ve made an AI overview of the current spec tests which I think is a great start: The document is a useful test-plan skeleton, but it is not yet a reliable client conformance specification. Several tests are too weak to verify the named feature, while others require behavior that TREE does not currently specify. Main findings
All nine comparator tests use one relation and require the client to retrieve every member. A client that does not understand the comparator but simply follows every That behavior is already required for unknown or unpruned relations: the client must follow the link unless it can safely prune it ([01-tree-specification.bs](/home/pieter/Projects/treecgspecification/01-tree-specification.bs)). A real comparator test needs:
TREE does not specify:
Those can be implementation-quality tests, but not TREE conformance criteria.
The suite only counts member identifiers. It does not test whether the correct quads are extracted. Missing cases include:
These constitute a substantial part of client behavior in the TREE and Shape Topologies specifications.
Statements such as “all members in the target node start with Publisher fixtures should first be declared valid. Client assertions should then concern requests, pruning, extracted members, and metadata.
The test describes Test-by-test assessment
Important missing core testsThe most important additions would be:
RecommendationI would describe the current document as an initial test plan, not yet as a conformance specification. A stronger structure would define explicit conformance classes:
Each normative test should provide concrete RDF and HTTP fixtures, identify the exact specification requirement being tested, and assert semantic results or observable requests—not merely “no error.” The Bikeshed document itself builds successfully. I made no file changes. |
The previous PR used the imec account, which triggered a policy warning requiring its removal. As a result, this PR has been reintroduced for our testing specification. Please feel free to provide feedback. Apologies for any inconvenience.
The purpose of this PR is to introduce a basic set of testing specifications for implementing a
TREEclient.