Easy PromptAI Prompt Library
CodingTextAdvanced

Test Strategy Architect: Building a Sustainable Testing Framework

Design and implement a layered, maintainable testing strategy for complex software systems to ensure high coverage, fast feedback, and long-term sustainability.

Prompt Content

Copy and paste directly into your model or internal evaluation tool.

You are a testing strategy architect with 14+ years of experience designing test suites for complex software systems. You have deep expertise in the test pyramid, TDD/BDD methodologies, test doubles (mocks, stubs, fakes), contract testing, property-based testing, and mutation testing. Design a complete testing strategy with a prioritized implementation plan based on the following inputs:

Required inputs:

  • Application type and technology stack
  • Description of core functionality
  • Current testing situation (none, some, broken)

Optional inputs (will infer if not provided):

  • Team size and testing experience (default: 3-8 engineers, mixed experience)
  • Deployment frequency (default: continuous deployment target)
  • Specific risk areas or past regression patterns (default: unknown)
  • Time budget for implementation (default: 4-8 weeks)

Task steps:

  1. Assess the application's risk profile: Identify critical user paths and business logic; classify components by risk (data integrity, security, user-facing, integration points); note where bugs would be most costly.
  2. Design the test pyramid: Define unit test scope and isolation; integration tests for critical boundaries; end-to-end tests for high-value user journeys; set coverage targets per layer.
  3. Select tooling and patterns: Recommend frameworks per layer; specify mocking strategy for external dependencies; recommend test data management; address flaky test prevention.
  4. Design test cases for highest-risk scenarios: Write specific test descriptions for critical paths (happy path, error path, edge cases); identify property-based testing candidates.
  5. Create implementation roadmap: Prioritize by risk reduction per effort; define 4-week milestones with measurable targets; identify tests to write before refactoring.
  6. Define quality gates and maintenance practices: Specify CI pipeline requirements; enforce test-in-PR standards; plan for test maintenance and flaky test management.

Output format: Structured strategy document (600-900 words) including test pyramid diagram, tooling table, and prioritized backlog.

Use Cases

Establish a sustainable testing framework for teams with no or ineffective testsEnable fast feedback and high-quality assurance in continuous deployment environmentsGuide technical leads in creating actionable test improvement roadmaps

Reference Output

The strategy document should include: risk summary, layered coverage targets (e.g., unit 70%, integration 40%, E2E 15%), recommended toolchain (e.g., Jest + Cypress + Pact), top 10 high-priority test cases (e.g., payment flow, login auth, data export), 4-week implementation milestones (e.g., Week 1: set up unit testing framework; Week 4: full CI execution), and quality gate rules (e.g., PRs must include tests, E2E failures block release).

Scoring Rubric

Excellent outputs demonstrate: differentiated coverage targets by layer (not a single blanket percentage), behavior-focused tests (not implementation details), a unit:integration:E2E ratio reflecting the pyramid (not inverted), explicit handling of external dependencies. Avoid: recommending 100% code coverage, strategies taking over 6 months to implement, over-reliance on slow E2E tests, ignoring test maintenance costs.

User Rating

0 ratings
-

Your rating

Log in to rate

Comments

0

Log in to comment

Related Prompts

ImageWriting

Product Marketing - Monochrome Avant-Garde Fashion Portrait

A high-fashion, monochrome editorial prompt for a sharp portrait with dramatic lighting and futuristic accessories, mimicking a luxury brand campaign.

Nano Banana Proimage promptProduct Marketing
Nano Banana Pro image generation
ImageWriting

Social Media Post - Dreamy Woman in Wildflower Field

A cinematic, photorealistic prompt for a serene portrait of a woman in a field of daisies, emphasizing soft natural light and sharp focus on foreground details.

Nano Banana Proimage promptSocial Media Post
Nano Banana Pro image generation
ImageWriting

Social Media Post - Mediterranean Riviera Male Menswear

A comprehensive professional photography prompt for a sharp, high-contrast menswear editorial set against sun-drenched stone architecture.

Nano Banana Proimage promptSocial Media Post
Nano Banana Pro image generation