Skip to content

Add library-style test support to the test schema - #141

Open
bryantaustin13 wants to merge 1 commit into
cqframework:mainfrom
bryantaustin13:library-test-support
Open

Add library-style test support to the test schema#141
bryantaustin13 wants to merge 1 commit into
cqframework:mainfrom
bryantaustin13:library-test-support

Conversation

@bryantaustin13

Copy link
Copy Markdown
Contributor

Summary

Extends tests/testSchema.xsd so a <test> can supply a complete CQL
<library> instead of a single <expression>. This is a first, scoped
increment toward #17 (Multi-Library, Multi-Resource Tests) and unblocks #61,
whose overload-matching test needs library-level function declarations.

Changes

  • <test> now accepts an <xs:choice> of <expression> or <library>
    (exactly one required — preserves the "every test has something to evaluate"
    invariant).
  • New Library complex type: CQL source text with an optional invalid
    attribute (mirrors Expression), so negative library tests
    (invalid="semantic" etc.) are expressible.
  • New optional name attribute on Output, identifying which library
    define an expected result describes.

Compatibility & validation

Purely additive — no existing construct changes meaning. Validated with
xmlschema:

Relationship to other work

… a single <expression>, as needed by the overload-matching test in PR cqframework#61.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant