diagnose-integration-e2e-tests

Diagnose failed .NET integration and E2E backend tests from assertions and logs.

Updated Nov 19, 2020
One-click install
npx skills add https://github.com/kwojtasinski-repo/ECommerceApp --skill diagnose-integration-e2e-tests-kwojtasinski-repo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose-integration-e2e-tests
Source: https://github.com/kwojtasinski-repo/ECommerceApp/tree/main/.github/skills/diagnose-integration-e2e-tests
Command: npx skills add https://github.com/kwojtasinski-repo/ECommerceApp --skill diagnose-integration-e2e-tests-kwojtasinski-repo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a .NET integration or E2E backend test fails, it is tempting to guess the cause from the exception type or rerun the whole suite. This Skill enforces an evidence-first diagnostic workflow that pinpoints the exact failing assertion, correlates test-runner, application, database, and container logs, and classifies the root cause before any code change is proposed. ## Core Features & Use Cases - Evidence-ordered diagnosis: Walks through test identity, assertion details, test-runner output, application-host logs, and dependency logs in a fixed order so infrastructure noise does not hide a product assertion. - Failure classification: Assigns exactly one primary classification (assertion/product behavior, test setup/isolation, startup/pipeline, database/infrastructure, external dependency, or timing/concurrency) with supporting evidence. - Structured diagnosis report: Produces a standardized report with verdict, assertion evidence, log evidence, root cause, discriminating check, smallest fix, and validation steps. - Use Case: A CI run of ECommerceApp.Web.IntegrationTests fails with a generic HTTP 500. Use this Skill to extract the exact assertion from the TRX log, correlate the server exception by timestamp, classify it as an application startup error, and identify the smallest fix. ## Quick Start Ask the assistant to diagnose the failing integration test by pasting the dotnet test failure output or the path to the captured log file.

Frequently Asked Questions about diagnose-integration-e2e-tests

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

FAQPage Schema
How do I diagnose a failing .NET integration test?

Start by identifying the exact failing test and assertion, recording expected versus actual values. Then inspect test-runner output, application-host logs, and dependency logs around the failure timestamp before proposing any fix.

How to debug WebApplicationFactory test failures in ASP.NET Core?

Capture the failing assertion and HTTP response body first, then correlate the request with application startup, middleware, and exception logs using timestamps or correlation ids. A HTTP 500 is a symptom, not the root cause.

Why does a test pass alone but fail in the full suite?

This usually indicates test isolation problems such as shared fixtures, seed data, cleanup ordering, or parallelism conflicts. Run the test sequentially with one fixture instance and compare its setup with a passing neighbouring test.

Should I rerun the whole test suite when one test fails?

No. Rerunning the whole suite destroys the smallest reproducible signal and can mask ordering-dependent behavior. Rerun only the single failing test with --filter and detailed logging as a discriminating check.

When should I not use this diagnostic workflow?

Do not use it for unit-test-only failures with no application host or external dependency, or when writing new tests without an observed failure. It is a diagnostic workflow, not a test-writing or test-stabilization shortcut.