Skip to content

test: split validation tests by conformance level (#74) - #83

Merged
shaonianche merged 1 commit into
mainfrom
test/split-validation-tests
Oct 28, 2026
Merged

shaonianche merged 1 commit into
mainfrom
test/split-validation-tests

Conversation

@shaonianche

Copy link
Copy Markdown
Owner

Follow-up to #74: the validation package split landed in #82, but its test file was still a single 995-line module.

  • Split test_validation.py into test_validation_report.py, test_validation_wire.py, test_validation_profile.py, and test_validation_file_types.py, mirroring fit_tool/validation/.
  • Move the shared activity/course builders into validation_helpers.py.
  • Merge test_profile_scope.py into test_validation_profile.py, so catalog, coverage, and scope tests live with the rest of the PROFILE-level tests.

No tests removed: the validation suite still runs the same 47 tests.

Verification

  • uv run ruff check fit_tool — clean
  • uv run mypy — 3 files, success
  • uv run pytest -q — 447 passed, 1 skipped

test_validation.py had grown to 995 lines. Split it into report, wire,
profile, and file_types modules that mirror fit_tool/validation/, with the
shared activity/course builders in validation_helpers.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a180a3-b0f6-711b-bca9-09e4a1f830d0
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.03%. Comparing base (efcbd2c) to head (e809ece).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   93.03%   93.03%           
=======================================
  Files          46       46           
  Lines        2728     2728           
  Branches      425      425           
=======================================
  Hits         2538     2538           
  Misses        109      109           
  Partials       81       81           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shaonianche
shaonianche merged commit 4a65e95 into main Oct 28, 2026
10 checks passed
@shaonianche
shaonianche deleted the test/split-validation-tests branch October 28, 2026 05:43
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