testcase-generator

Generate acceptance and rejection test cases from specifications using CSP failure models.

2|1|Updated Feb 2, 2019
One-click install
npx skills add https://github.com/Foo-x/dotfiles --skill testcase-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testcase-generator
Source: https://github.com/Foo-x/dotfiles/tree/main/claude/skills/testcase-generator
Command: npx skills add https://github.com/Foo-x/dotfiles --skill testcase-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill systematically generates acceptance and rejection test cases from diverse specifications, ensuring thorough test coverage and identifying potential failures before they occur.

Core Features & Use Cases

  • Automated Test Case Generation: Creates both acceptance (within trace sets) and rejection (outside trace sets) test cases based on formal models like state machines.
  • Diverse Input Support: Handles natural language, state machine diagrams, Mermaid, and sequence diagrams.
  • Use Case: When developing a new feature, use this Skill to automatically generate a comprehensive suite of test cases from the requirements document, ensuring all critical paths, edge cases, and failure scenarios are covered.

Quick Start

Use the testcase-generator skill to generate test cases from the provided specification document 'user_login_spec.md'.

Frequently Asked Questions about testcase-generator

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

FAQPage Schema
How do I generate test cases from natural language specifications?

Test case generation from natural language specifications is achieved by deriving acceptance and rejection test cases using CSP failure models. The system processes natural language, state machines, Mermaid, and sequence diagrams to create comprehensive test suites.

What is the difference between acceptance and rejection test cases in formal methods?

Acceptance test cases verify traces within allowed state machine sets, while rejection test cases target traces outside these sets. This Skill uses CSP failure models to systematically generate both types for thorough liveness, reachability, and safety coverage.

Can I use a Mermaid sequence diagram to automatically generate a test suite?

Yes, Mermaid sequence diagrams are supported as input for test suite generation. The system derives test cases for liveness, reachability, and safety properties directly from these diagrams to ensure critical paths and edge cases are covered.

How to derive safety property test cases from a state machine?

Deriving safety property test cases from a state machine involves applying CSP failure models to the specification. This Skill systematically generates targeted test suites for safety, liveness, and reachability directly from the provided state machine diagrams.

Does this test case generation approach support requirements review and coverage analysis?

Yes, test case generation supports requirements definition, specification, design artifacts, review, and coverage analysis. It systematically identifies potential failures before they occur by generating comprehensive acceptance and rejection test cases.

What are the limitations of using CSP failure models for test case generation?

Using CSP failure models for test case generation requires structured input formats like state machines or sequence diagrams to derive accurate acceptance and rejection test suites. Unstructured natural language inputs may yield less precise coverage for complex liveness and safety properties.