c4flow:test

Execute unit and integration tests with automatic framework detection and failure classification.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/tunneleven/C4Flow --skill c4flow-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4flow:test
Source: https://github.com/tunneleven/C4Flow/tree/main/skills/test
Command: npx skills add https://github.com/tunneleven/C4Flow --skill c4flow-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the execution of unit and integration tests, identifies the test framework, classifies failures, and enforces code coverage thresholds, ensuring code quality before proceeding.

Core Features & Use Cases

  • Automated Test Execution: Runs the full test suite for a given feature.
  • Framework Detection: Auto-detects from 16+ frameworks (Jest, Pytest, Go, etc.).
  • Failure Classification: Distinguishes between code bugs (Tier 1) and environment issues (Tier 2).
  • Coverage Enforcement: Checks code coverage against a defined threshold and can attempt to write new tests to meet it.
  • Use Case: After writing code for a new feature, this Skill can be invoked to run all associated tests, report any bugs found, and verify that at least 80% of the code is covered by tests.

Quick Start

Run all tests for the 'user-auth' feature and ensure code coverage is above 80%.

Frequently Asked Questions about c4flow:test

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

FAQPage Schema
How do I automate test execution and enforce code coverage thresholds in a CI/CD pipeline?

You can automate test execution and enforce code coverage thresholds by running a skill that detects your test framework, runs the suite, and writes additional tests if coverage falls below your configured threshold.

How does automated failure classification distinguish between code bugs and environment issues?

Automated failure classification analyzes stack traces to determine root causes, assigning confidence levels to categorize failures into Tier 1 code bugs or Tier 2 environment issues with actionable error messages.

Can I auto-detect test frameworks and package managers in a monorepo with multiple JavaScript runners?

Yes, automated test execution handles monorepos and various JavaScript runners by auto-detecting the package manager and test framework from over 16 supported options like Jest, Pytest, and Go.

What is the best way to analyze stack traces and find the root cause of unit test failures?

The best way to find the root cause of unit test failures is using automated stack trace analysis, which parses the output to identify root causes and provides detailed, actionable error messages.

How do I automatically generate new tests to meet code coverage requirements?

You can automatically generate new tests to meet code coverage requirements by configuring a coverage enforcement threshold; the test automation will attempt to write additional tests if coverage is insufficient.

Does automated testing support integration tests alongside unit tests for new features?

Yes, automated testing supports integration tests alongside unit tests. It executes the full test suite for a given feature and reports any bugs found, ensuring overall code quality before proceeding.