Skip to content

Comments

Pregenerate only fixtures used by loaded RSpec examples#9

Merged
ngan merged 3 commits intomainfrom
np-rspec-selective-pregen
Feb 21, 2026
Merged

Pregenerate only fixtures used by loaded RSpec examples#9
ngan merged 3 commits intomainfrom
np-rspec-selective-pregen

Conversation

@ngan
Copy link
Collaborator

@ngan ngan commented Feb 21, 2026

Summary

  • pregenerate only fixtures referenced by loaded RSpec examples when autogenerate is disabled
  • collect required fixture names from loaded example metadata
  • extend FixtureCache.pregenerate_all to accept an explicit fixture list
  • lazily load missing fixture definitions during pregeneration in FixtureRunner
  • add coverage for selective pregeneration behavior

Testing

  • bundle exec rspec --fail-fast spec/unit/fixture_cache_spec.rb spec/unit/rspec_integration_spec.rb

@ngan ngan changed the base branch from np-rspec-lazy-suite-and-selective-pregen to main February 21, 2026 04:55
@ngan ngan force-pushed the np-rspec-selective-pregen branch 3 times, most recently from 6b4b1a3 to b87b89c Compare February 21, 2026 06:55
Co-authored-by: Codex <codex@openai.com>
@ngan ngan force-pushed the np-rspec-selective-pregen branch from b87b89c to a2956e6 Compare February 21, 2026 06:59
Co-authored-by: Codex <codex@openai.com>
@ngan ngan merged commit fff923e into main Feb 21, 2026
8 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.

1 participant