Skip to content

Comments

Refactor runner lifecycle + isolator APIs, and update README#12

Merged
ngan merged 2 commits intomainfrom
np-readme-audit-refresh
Feb 22, 2026
Merged

Refactor runner lifecycle + isolator APIs, and update README#12
ngan merged 2 commits intomainfrom
np-readme-audit-refresh

Conversation

@ngan
Copy link
Collaborator

@ngan ngan commented Feb 22, 2026

Summary

  • refactor the fixture execution model around a Runner that owns configuration + registry state
  • rename generation wrappers from Generator to Isolator (FixtureKit::Isolator, FixtureKit::RSpec::Isolator, FixtureKit::TestCase::Isolator)
  • replace the old definition context with FixtureKit::Definition, and keep FixtureKit.define returning a definition object
  • switch SQL capture to SqlSubscriber.capture using ActiveSupport::Notifications.subscribed
  • update fixture registration/mount flow in RSpec integration and keep suite pregeneration in before(:suite)
  • rename callback config from on_generate to on_cache (receives fixture name)
  • refresh README to document current configuration and lifecycle (isolator, on_cache, preserve-cache behavior)

Notable API Changes

  • config.generator -> config.isolator
  • FixtureKit::Generator -> FixtureKit::Isolator
  • config.on_generate -> config.on_cache
  • removed stale autogenerate configuration/docs

Verification

  • bundle exec rspec --fail-fast
    • 61 examples, 0 failures

@ngan ngan changed the title Update README to match current FixtureKit lifecycle Refactor runner lifecycle + isolator APIs, and update README Feb 22, 2026
@ngan ngan merged commit e257605 into main Feb 22, 2026
10 checks passed
@ngan ngan deleted the np-readme-audit-refresh branch February 22, 2026 04:50
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