Skip to content

Comments

refactor(tests): replace .fail.md xfail mechanism with in-code sets#574

Merged
fgmacedo merged 1 commit intodevelopfrom
refactor/scxml-xfail-sets
Feb 19, 2026
Merged

refactor(tests): replace .fail.md xfail mechanism with in-code sets#574
fgmacedo merged 1 commit intodevelopfrom
refactor/scxml-xfail-sets

Conversation

@fgmacedo
Copy link
Owner

Summary

  • Replace the file-based .fail.md xfail mechanism with in-code XFAIL_BOTH / XFAIL_SYNC_ONLY / XFAIL_ASYNC_ONLY sets in tests/scxml/conftest.py
  • Delete all 46 .fail.md files (30 mandatory + 16 optional)
  • Remove --upd-fail pytest option and FailedMark class
  • Separate sync/async xfail tracking (the old mechanism shared a single mark for both engines, causing loops when one passed but the other failed)

The file-based .fail.md mechanism had issues: each .scxml generates two
tests (sync + async) but the xfail mark was shared, and --upd-fail
caused loops when one engine passed but the other failed. Replace with
XFAIL_BOTH/XFAIL_SYNC_ONLY/XFAIL_ASYNC_ONLY sets in conftest.py.

- Remove 46 .fail.md files (30 mandatory + 16 optional)
- Remove --upd-fail CLI option and FailedMark class
- Remove unused DebugListener and helper dataclasses
- Support per-engine xfail marks via sync/async set split
@sonarqubecloud
Copy link

@fgmacedo fgmacedo merged commit a6e57a6 into develop Feb 19, 2026
12 checks passed
@fgmacedo fgmacedo deleted the refactor/scxml-xfail-sets branch February 19, 2026 20:06
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e9a9339) to head (8ad63c0).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #574   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        33           
  Lines         4051      4051           
  Branches       639       639           
=========================================
  Hits          4051      4051           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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