Skip to content

[TESTING] Create test fixtures for PR template validation #720

@ashleyshaw

Description

@ashleyshaw

Issue Type: Task
Priority: Medium
Phase: 3 (Automation & Enforcement)
Depends on: #717, #718
Effort: 1h

Summary

Create test fixtures and examples for PR template validation workflow and agent.

Details

  • File: .github/tests/fixtures/pr-templates/
  • Sample PR bodies for each template type (valid and invalid)
  • Test cases for workflow validation
  • Examples of agent output and corrections

Test Coverage

  • Valid PR for each of 9+ template types
  • Invalid PRs (missing sections, wrong template, incomplete)
  • Edge cases (empty sections, minimal content, etc.)
  • Agent auto-fix scenarios

Fixture Structure

.github/tests/fixtures/pr-templates/
├── valid/
│   ├── pr_feature.valid.md
│   ├── pr_bug.valid.md
│   ├── pr_chore.valid.md
│   └── ... (one per template type)
├── invalid/
│   ├── missing-sections.md
│   ├── wrong-template.md
│   ├── incomplete.md
│   └── ...
├── edge-cases/
│   ├── empty-sections.md
│   ├── minimal-content.md
│   └── ...
└── README.md

Acceptance Criteria

  • Test fixtures cover all template types
  • Both valid and invalid examples provided
  • Workflow/agent can be tested against fixtures
  • Documentation explains how to use fixtures

Part of: Template Enforcement & Governance project backlog

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions