com.test.fail

Replay a process emitting partial JSON output and exiting with code 2.

2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/clawperator/clawperator --skill com-test-fail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: com.test.fail
Source: https://github.com/clawperator/clawperator/tree/main/apps/node/src/test/fixtures/skills/com.test.fail
Command: npx skills add https://github.com/clawperator/clawperator --skill com-test-fail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill fixture demonstrates how an automation replay handles a partial output followed by a non-zero exit, enabling testing of error handling and result consistency.

Core Features & Use Cases

  • Partial-output replay: emits a single partial result to stdout and then terminates with an error to test downstream handling.
  • Deterministic failure mode: predictable non-zero exit for repeatable test scenarios.
  • Use Case: verify robust AI responses when a command produces incomplete data before failing.

Quick Start

Run the skill to replay a process that prints a partial JSON line to stdout and then exits with code 2.

Frequently Asked Questions about com.test.fail

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

FAQPage Schema
How do I test a script that exits with a non-zero code after partial output?

To test a script that exits with a non-zero code after partial output, you use a fixture that replays a process emitting a partial JSON line to stdout and then terminates with exit code 2 to validate downstream error handling.

What does a partial output replay fixture do for Node.js testing?

A partial output replay fixture provides a deterministic failure mode by printing a partial JSON line to stdout, writing an error message to stderr, and exiting with code 2 to test automation replay consistency.

Do I need Node.js to run a fixture that tests non-zero exit codes?

Yes, you need the Node.js runtime to run this fixture, as the script requires Node.js to replay the process that emits partial output and exits with a non-zero code.

How can I verify robust AI responses when a command produces incomplete data before failing?

You can verify robust AI responses by running a fixture that emits partial output to stdout and then fails with a non-zero exit code, allowing you to test how your system handles incomplete data before failing.

When do I need to test partial-output streaming and non-zero termination behavior?

You need to test partial-output streaming and non-zero termination behavior when validating error handling in scripted tasks, ensuring downstream systems process incomplete data before a failure occurs.