Description
Existing tests in spec/ only cover basic logic. The complex transformations from YAML to HTML in the generator scripts are mostly untested and rely on integration-style validation.
Acceptance Criteria
Final Summary
Implemented a comprehensive unit testing suite for all custom Jekyll Generator plugins.
- Created
spec/plugins/interview_generator_spec.rb, spec/plugins/video_asset_generator_spec.rb, and spec/plugins/taxonomy_generator_spec.rb.
- Utilized RSpec with instance doubles to mock Jekyll::Site and Jekyll::Data, ensuring deterministic tests without requiring a full site build.
- Covered core functionality, including virtual page creation, metadata assignment, and breadcrumb generation.
- Added edge-case tests for missing optional fields and malformed data.
- Verified that these tests are correctly integrated into the
rake ci pipeline, ensuring they act as blocking checks for all builds.
- This fulfills all acceptance criteria for TASK-008.
Definition of Done