integration-testing-template

Automate API integration tests with xUnit, Playwright, and WebApplicationFactory.

1|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/Sparkymod/Template --skill integration-testing-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-testing-template
Source: https://github.com/Sparkymod/Template/tree/main/.claude/skills/integration-testing-template
Command: npx skills add https://github.com/Sparkymod/Template --skill integration-testing-template

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit addresses the challenge of manually writing and managing comprehensive integration tests for web APIs, ensuring full coverage of CRUD lifecycles, permissions, and end-to-end scenarios.

Core Features & Use Cases

  • Automated Test Execution: Executes integration tests for the API, including authentication, authorization, and CRUD operations.
  • Advanced Testing Capabilities: Includes test suites for smoke, authentication, authorization, CRUD lifecycle, soft delete search, DTO validation, and criteria pattern testing.
  • End-to-End Testing: Covers end-to-end (E2E) scenarios using Playwright for real user journey testing.

Quick Start

Run the integration tests for the Template API using the integration-testing-template skill.

Frequently Asked Questions about integration-testing-template

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

FAQPage Schema
How do I automate API integration testing for .NET Core applications?

Automate API integration testing for .NET Core by using xUnit and the WebApplicationFactory test host to execute test suites that verify permissions, validation, and CRUD operations. This ensures full endpoint lifecycle coverage.

Can I run end-to-end web application testing using Playwright with xUnit?

Yes, you can run end-to-end web application testing using Playwright with xUnit. This validates real user journeys and E2E scenarios, testing full endpoints and user flows in .NET Core APIs.

What is the best way to validate DTOs and CRUD lifecycles in web APIs?

The best way to validate DTOs and CRUD lifecycles in web APIs is running automated integration tests. These tests verify correct application of permissions, validation, and CRUD operations using a test host.

Does integration testing with WebApplicationFactory support authentication and authorization checks?

Integration testing with WebApplicationFactory supports authentication and authorization checks. It includes dedicated test suites for authentication, authorization, smoke testing, and criteria pattern testing.

What types of test suites are needed for comprehensive API integration testing?

Comprehensive API integration testing requires test suites for smoke, authentication, authorization, CRUD lifecycle, soft delete search, DTO validation, and criteria pattern testing. End-to-end scenarios using Playwright complete the coverage.