Skip to content

Comments

Use configurable generators for fixture cache pregeneration#7

Merged
ngan merged 5 commits intomainfrom
np-rspec-pregeneration-harness
Feb 20, 2026
Merged

Use configurable generators for fixture cache pregeneration#7
ngan merged 5 commits intomainfrom
np-rspec-pregeneration-harness

Conversation

@ngan
Copy link
Collaborator

@ngan ngan commented Feb 20, 2026

Summary

  • add a pluggable generator architecture for fixture cache pregeneration via FixtureKit.configuration.generator
  • make FixtureKit::Generator a minimal base class that delegates class .run to instance #run
  • add FixtureKit::TestCase::Generator as the default non-RSpec generator, running pregeneration inside an internal ActiveSupport::TestCase
  • ensure the internal test-case harness is removed from Minitest::Runnable.runnables so pregeneration does not count toward suite stats
  • keep RSpec integration on FixtureKit::RSpec::Generator so pregeneration runs in an internal RSpec example context with normal hooks/transactions and no reporter stat pollution
  • add unit coverage for configuration defaults and generator harness behavior/failure cases
  • update README docs for the new generator defaults and behavior

Testing

  • bundle exec rspec --fail-fast
  • BUNDLE_GEMFILE=gemfiles/rails_8.0.gemfile bundle exec rspec --fail-fast
  • BUNDLE_GEMFILE=gemfiles/rails_8.1.gemfile bundle exec rspec --fail-fast

@ngan ngan merged commit cecf0e1 into main Feb 20, 2026
10 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