test-generation

Generate Cucumber step definitions and Vitest tests from Gherkin scenarios.

Updated May 6, 2026
One-click install
npx skills add https://github.com/crgarcia12/compy --skill test-generation-crgarcia12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generation
Source: https://github.com/crgarcia12/compy/tree/main/.github/skills/test-generation
Command: npx skills add https://github.com/crgarcia12/compy --skill test-generation-crgarcia12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cucumber, vitest, playwright, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the generation of Behavior-Driven Development (BDD) test code from Gherkin scenarios, streamlining the process of creating test cases for both new features and existing applications.

Core Features & Use Cases

  • BDD Test Generation: Automatically creates Cucumber step definitions and Vitest unit tests from Gherkin scenarios.
  • Red and Green Baseline: Supports both greenfield development with a failing baseline and brownfield applications with a passing baseline.
  • Use Case: For a new feature, use the Skill to generate tests that fail because no application code exists yet, ensuring a comprehensive test suite for future development.

Quick Start

Run the test-generation skill with the command 'test-generation generate --feature specs/features/new_feature.feature'.

Frequently Asked Questions about test-generation

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

FAQPage Schema
How do I generate BDD tests from Gherkin scenarios?

To generate BDD tests from Gherkin scenarios, provide feature files, Page Object Models, and test runner configurations. The system automatically creates Cucumber step definitions and Vitest tests for HTTP calls, Playwright interactions, and backend logic.

What is the difference between BDD test generation for greenfield and brownfield applications?

BDD test generation for greenfield applications creates a failing test baseline where no application code exists yet, whereas brownfield application testing generates a passing baseline to verify existing features using Cucumber and Vitest.

Do I need Vitest and Playwright to automate Cucumber step definitions?

Yes, automating Cucumber step definitions requires Vitest and Playwright dependencies. Vitest handles unit tests and HTTP calls, while Playwright manages browser interactions within the generated BDD test suite.

Can I use Gherkin feature files to test backend logic and HTTP calls?

Yes, you can use Gherkin feature files to test backend logic and HTTP calls. The generation process maps Gherkin scenarios to Cucumber step definitions and Vitest tests, automatically covering backend operations and HTTP request validations.

What inputs are required to automate Cucumber and Vitest test creation?

Automating Cucumber and Vitest test creation requires Gherkin scenarios, Page Object Models, and specific configurations for test runners and databases. These inputs enable the automated generation of comprehensive BDD test code.