Skip to content

feat(test): introduce VCR-based recipe parsing harness#33

Draft
charliecreates[bot] wants to merge 2 commits intomainfrom
ai-rec-11-create-recipe-parsing-test-harness
Draft

feat(test): introduce VCR-based recipe parsing harness#33
charliecreates[bot] wants to merge 2 commits intomainfrom
ai-rec-11-create-recipe-parsing-test-harness

Conversation

@charliecreates
Copy link

Adds infrastructure to record and replay real HTTP interactions when
exercising RecipeExtractor:

  • Adds vcr and webmock gems (test-only)
  • Creates test/fixtures/vcr_cassettes (ignored from Git, .gitkeep tracked)
  • Configures VCR in test/test_helper.rb
  • Provides parsing:record_vcr rake task for easy cassette generation
  • Implements example smoke test (test/parsing/recipe_extractor_vcr_test.rb)
    which is skipped when the cassette is absent
  • Updates .gitignore, adds developer docs in TESTING.md, and links from
    README.md

Adds infrastructure to record and replay real HTTP interactions when
exercising `RecipeExtractor`:

- Adds `vcr` and `webmock` gems (test-only)
- Creates `test/fixtures/vcr_cassettes` (ignored from Git, `.gitkeep` tracked)
- Configures VCR in `test/test_helper.rb`
- Provides `parsing:record_vcr` rake task for easy cassette generation
- Implements example smoke test (`test/parsing/recipe_extractor_vcr_test.rb`)
  which is skipped when the cassette is absent
- Updates `.gitignore`, adds developer docs in `TESTING.md`, and links from
  `README.md`
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