test-failure-logger

Log test failure details into timestamped JSON files using Python standard libraries.

3|1|Updated Feb 4, 2022
One-click install
npx skills add https://github.com/4IRL/urls4irl --skill test-failure-logger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-failure-logger
Source: https://github.com/4IRL/urls4irl/tree/main/.claude/skills/test-failure-logger
Command: npx skills add https://github.com/4IRL/urls4irl --skill test-failure-logger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Developers and QA teams often struggle to keep track of repeated test failures, making debugging and progress tracking difficult.

Core Features & Use Cases

  • Automatic Failure Logging: Save detailed test failure info into timestamped files for easy reference.
  • Supports Multiple Test Types: Suitable for pytest, Selenium, Playwright, and CI/CD environments to capture relevant failure data.
  • Use Case: During an active testing session, encounter a failed test, then run the script to log its details for future analysis.

Quick Start

Use the test failure logger to record a failed test's details by providing the test name, probable cause, and error snippet.

Frequently Asked Questions about test-failure-logger

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

FAQPage Schema
How do I log pytest test failure details automatically for debugging?

To log pytest test failure details automatically, you can run a script that saves the test name, probable cause, and error snippet into timestamped JSON files. This creates a permanent failure history for tracking recurring issues during development.

What is the best way to track recurring test failures across CI/CD environments?

Tracking recurring test failures across CI/CD environments is best done by saving detailed failure information into timestamped JSON files stored locally. This approach maintains a persistent failure history accessible for future debugging and progress tracking.

Do I need external Python libraries to record test failure logs locally?

You do not need external Python libraries to record test failure logs locally. The process requires only Python standard libraries and an existing script in the specified directory to save detailed failure information into timestamped JSON files.

Can I use this method to log Selenium and Playwright test failures?

You can use this logging method to capture Selenium and Playwright test failures. It supports multiple test types and CI/CD environments by recording the test name, probable cause, and error snippet into timestamped JSON files for debugging.

Why should I save test failure error snippets into timestamped files?

Saving test failure error snippets into timestamped files provides a structured history of failures, making it easier to track recurring issues and debug effectively. This local JSON storage ensures failure data is preserved across testing phases.