Skip to content

fix: fix fixture listing to use file_fixtures key presence#89

Merged
bellini666 merged 2 commits intobellini666:masterfrom
benediktziegler:fix-editable-install-listing
Feb 16, 2026
Merged

fix: fix fixture listing to use file_fixtures key presence#89
bellini666 merged 2 commits intobellini666:masterfrom
benediktziegler:fix-editable-install-listing

Conversation

@benediktziegler
Copy link
Copy Markdown
Contributor

Fixes #88

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.48%. Comparing base (6b3ed14) to head (f0d0155).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/fixtures/cli.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
- Coverage   55.51%   55.48%   -0.04%     
==========================================
  Files          26       26              
  Lines        3035     3035              
==========================================
- Hits         1685     1684       -1     
- Misses       1350     1351       +1     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benediktziegler benediktziegler force-pushed the fix-editable-install-listing branch from 69302a0 to 6eb11b5 Compare February 16, 2026 09:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes issue #88 where fixtures from editable installed packages were not appearing in the fixture list tree output. The root cause was that the code used path.is_file() to determine if a path contained fixtures, but for editable installs, paths are remapped to virtual site-packages locations that don't exist on disk, causing is_file() to return false.

Changes:

  • Replace path.is_file() checks with file_fixtures.contains_key(path) in two locations to use data-driven checks instead of filesystem checks
  • Add comprehensive end-to-end tests for editable install fixture listing with three scenarios

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/fixtures/cli.rs Replace path.is_file() with file_fixtures.contains_key(path) in print_tree_node and has_visible_fixtures functions to correctly identify virtual paths as fixture files
tests/test_e2e.rs Add helper function and three comprehensive end-to-end tests to verify editable install fixtures appear correctly in tree output with different flag combinations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Owner

@bellini666 bellini666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bellini666 bellini666 merged commit c41f8bd into bellini666:master Feb 16, 2026
18 of 20 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.

Editable installed packages are not show in fixture list tree

3 participants