test-agent

Write and execute Pytest and Playwright test suites for FastAPI backends and frontend interfaces.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/pu-roi/LANES --skill test-agent-pu-roi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-agent
Source: https://github.com/pu-roi/LANES/tree/main/.agents/skills/test-agent
Command: npx skills add https://github.com/pu-roi/LANES --skill test-agent-pu-roi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It provides a dedicated QA workflow for the LANES project, ensuring backend FastAPI endpoints, SQLAlchemy models, and frontend UI flows are covered by automated tests instead of being verified manually. ## Core Features & Use Cases - Backend Testing: Write Pytest suites in backend/tests/ covering FastAPI endpoints, SQLAlchemy models, and utility functions. - Frontend Testing: Write Playwright or Jest tests in frontend/tests/ for UI components and user flows. - Test Infrastructure Setup: If no tests exist, it bootstraps the testing framework and directory structure first. - Use Case: After adding a new flood-report API endpoint, invoke this Skill to generate Pytest cases validating request handling, database persistence, and error responses. ## Quick Start Ask the agent to write Pytest tests for the new FastAPI endpoint in backend and run them to verify they pass.

Frequently Asked Questions about test-agent

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

FAQPage Schema
How do I write Pytest tests for FastAPI endpoints?▼

Create test files in backend/tests/ that exercise FastAPI endpoints, SQLAlchemy models, and utility functions. Use Pytest suites to validate request handling, database interactions, and expected responses for each endpoint.

How do I test frontend UI components with Playwright?▼

Write Playwright or Jest tests in frontend/tests/ targeting UI components and user flows. Playwright automates browser interactions to verify that pages render and behave correctly across user scenarios.

What should I do when a test fails?▼

Fix the underlying code so the test passes, or explain the failure to a human. Never delete or comment out a failing test unless explicitly authorized, since failing tests signal real defects.

What if the project has no existing tests?▼

The first task is to set up the testing framework and directory structure. Backend tests go in backend/tests/ using Pytest, and frontend tests go in frontend/tests/ using Playwright or Jest.

Pytest vs Playwright, which should I use for testing?▼

Use Pytest for backend Python code such as FastAPI endpoints and SQLAlchemy models. Use Playwright for frontend browser-based UI testing. They serve different layers and are used together, not interchangeably.