Skip to content

Add Test Isolation Instructions to Test Generation Prompt #396

@gltanaka

Description

@gltanaka

Description

Test pollution is a major issue - tests affect each other's state, especially across dev units. The test generation prompt should include explicit instructions to:

  • Build up test fixtures completely at the start of each test
  • Tear down all test state at the end of each test
  • Ensure each test can run independently in any order
  • Not rely on state from other tests

Current Problem

  • Tests pass when run individually but fail when run together
  • Test pollution happens between dev units (not just within)
  • Significant manual work required to fix test isolation issues

Acceptance Criteria

  • Test generation prompt includes explicit isolation requirements
  • Generated tests include proper setup/teardown
  • Tests can run in any order without pollution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions