Skip to content

Test platform branches on the platform they apply to - #1282

Merged
jgabry merged 2 commits into
masterfrom
platform-honest-tests
Sep 22, 2026
Merged

jgabry merged 2 commits into
masterfrom
platform-honest-tests

Conversation

@jgabry

@jgabry jgabry commented Sep 22, 2026

Copy link
Copy Markdown
Member

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

The toolchain and WSL tests mocked os_is_windows() and os_is_wsl() to force a platform branch on every OS. Most of those mocks sat under a skip_if(!os_is_windows()) and did nothing; the rest made the tests compare strings that mocked helpers produced. Each test now runs the branch its platform really takes, and the Windows and WSL CI jobs cover theirs.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Jonah Gabry

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

The toolchain and WSL tests mocked os_is_windows() and os_is_wsl() to
force a platform branch on every OS. Most of those mocks sat under a
skip and did nothing; the rest compared strings that mocked helpers
produced. Each test now runs the branch its platform takes, and the
Windows and WSL CI jobs cover theirs. The mocked WSL output_dir test is
removed because the two real-WSL tests after it check the same
behaviour end to end.
@jgabry
jgabry marked this pull request as ready for review September 22, 2026 18:59
@codecov-commenter

codecov-commenter commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.08%. Comparing base (4da65c7) to head (26459b9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1282      +/-   ##
==========================================
- Coverage   92.40%   92.08%   -0.32%     
==========================================
  Files          15       15              
  Lines        6570     6570              
==========================================
- Hits         6071     6050      -21     
- Misses        499      520      +21     

☔ View full report in Codecov by Harness.
📢 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.

@jgabry
jgabry merged commit aef0866 into master Sep 22, 2026
15 checks passed
@jgabry
jgabry deleted the platform-honest-tests branch September 22, 2026 21:44
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