Skip to content

Comments

Lazily register FixtureKit RSpec suite hook#8

Merged
ngan merged 1 commit intomainfrom
np-rspec-lazy-suite-and-selective-pregen
Feb 21, 2026
Merged

Lazily register FixtureKit RSpec suite hook#8
ngan merged 1 commit intomainfrom
np-rspec-lazy-suite-and-selective-pregen

Conversation

@ngan
Copy link
Collaborator

@ngan ngan commented Feb 21, 2026

Summary

  • refactor RSpec setup into FixtureKit::RSpec.configure!
  • register FixtureKit's suite cache setup lazily via when_first_matching_example_defined
  • keep cache clearing/pregeneration behavior the same once the hook is registered
  • add RSpec integration coverage for lazy suite-hook registration

Testing

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

@ngan ngan force-pushed the np-rspec-lazy-suite-and-selective-pregen branch from 4ac7a86 to f02da43 Compare February 21, 2026 04:51
@ngan ngan changed the title Optimize RSpec fixture cache setup and selective pregeneration Lazily register FixtureKit RSpec suite hook Feb 21, 2026
@ngan ngan merged commit 5947d3b 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