Skip to content

0.7.0: skip and skip_reason on test assets and test cases - #44

Merged
maximusunc merged 1 commit into
mainfrom
claude/hopeful-darwin-3kmynk
Oct 30, 2026
Merged

maximusunc merged 1 commit into
mainfrom
claude/hopeful-darwin-3kmynk

Conversation

@maximusunc

Copy link
Copy Markdown
Collaborator

Some tests always fail for a known reason, and we want them off until the issue behind them is fixed. This adds:

  • skip: a boolean, default false.
  • skip_reason: optional text, eg the issue the test waits on.

Both go on TestAsset, PathfinderTestAsset, TestCase and PathfinderTestCase, so every asset and test case class gets them, including AcceptanceTestAsset and PerformanceTestCase. Skipping a test case skips all of its assets.

The Test Harness (TranslatorSRI/TestHarness, separate PR) doesn't run skipped tests, but reports them as SKIPPED with the reason, and --include_skipped runs them anyway.

Compatibility

Both fields are optional, so existing data stays valid. Data that uses them needs 0.7.0, because the model rejects fields it doesn't know. So suites in NCATSTranslator/Tests shouldn't set skip until the deployed harness is on 0.7.0.

Changes

  • Schema: the two new slots, added to the four classes.
  • Generated files: the datamodels and project/ artifacts, regenerated with linkml 1.7.8 as before.
  • Tests: tests/test_skip.py covers the defaults, a skip with a reason, and a subclass.
  • Version: 0.7.0.

Testing

CI's steps (poetry install --no-root, poetry install, make test) run locally with the latest Poetry on Python 3.10, 3.11 and 3.12. All pass: 42 tests, 4 skipped as before.

After merging

Create the v0.7.0 release so it publishes to PyPI. The harness PR pins translator-testing-model==0.7.0.


Generated by Claude Code

Some tests always fail for a known reason, and should be turned off
until the issue behind them is fixed. skip (default false) and an
optional skip_reason go on TestAsset, PathfinderTestAsset, TestCase and
PathfinderTestCase, and so on every asset and test case class; skipping
a test case skips all of its assets. The Test Harness reports skipped
tests as skipped and can be told to run them anyway.

Both fields are optional, so existing data stays valid. Version 0.7.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S2yuREtzxTuRqVGp8Q8a6d
@maximusunc
maximusunc merged commit 0d631ff into main Oct 30, 2026
3 checks passed
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.

2 participants