pairwise-tests

Generate minimal pairwise test matrices covering 2-way parameter interactions with PICT.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cjennings/rulesets --skill pairwise-tests
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pairwise-tests
Source: https://github.com/cjennings/rulesets/tree/main/pairwise-tests
Command: npx skills add https://github.com/cjennings/rulesets --skill pairwise-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Pairwise testing is a practical approach to coverage; this skill generates a minimal test matrix that covers all 2-way parameter interactions using PICT, reducing test cases while maintaining bug detection.

Core Features & Use Cases

  • Generates a PICT model from a set of parameters and constraints.
  • Produces a markdown table of generated test cases and their expected results.
  • Supports complex configurations like feature flags, API parameter spaces, and form validation via constraints.
  • Use cases: when a function has 3+ parameters with multiple values; avoid exhaustive test sets; ensure coverage of pairwise interactions.

Quick Start

Provide a JSON configuration with parameter definitions and constraints, then run the helper to generate a PICT model and derive test cases.

Frequently Asked Questions about pairwise-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate pairwise tests for API parameter spaces using PICT?▼

Pairwise tests for API parameter spaces are generated by defining parameters and constraints in a JSON configuration, which builds a PICT model to produce a minimal test matrix covering all 2-way interactions.

What is pairwise testing and when do I need it for feature flags?▼

Pairwise testing is a combinatorial technique covering all 2-way parameter interactions. You need it for feature flags and permission matrices when exhaustive testing is impractical, reducing test cases while maintaining bug detection.

Can I use combinatorial testing for form validation rules with multiple constraints?▼

Combinatorial testing supports form validation rules through PICT constraints. By modeling validation parameters and restrictions, it generates a minimal test matrix ensuring all pairwise interactions are verified.

What's the best way to reduce test cases for functions with multiple parameters?▼

The best way to reduce test cases is generating a minimal pairwise test matrix using PICT. This approach covers all 2-way parameter interactions, significantly lowering test counts compared to exhaustive sets.

Does pairwise testing work for configuration testing with 3 or more parameters?▼

Pairwise testing works effectively for configuration testing with 3 or more parameters. It applies PICT to identify parameters and constraints, building a model that produces test cases covering all 2-way interactions.