integration-test-builder

Generate integration test documentation and Python test scripts for Django REST API endpoints.

Updated May 11, 2026
One-click install
npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill integration-test-builder-thachrocky12345
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-test-builder
Source: https://github.com/thachrocky12345/local-agent-train-workstation/tree/main/.claude/skills/integration-test-builder
Command: npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill integration-test-builder-thachrocky12345

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve? Manually writing integration tests and test documentation for backend API endpoints is repetitive and error-prone, especially when tracking endpoint paths, auth requirements, and expected status codes across views, urls, and services files. ## Core Features & Use Cases - Endpoint Analysis: Reads urls.py, views.py, services.py, and models.py to extract endpoint paths, HTTP methods, parameters, and expected response codes. - Test Documentation Generation: Creates structured Markdown test plans with curl examples, expected results checklists, security checklists, and database verification queries. - Python Test Script Generation: Produces runnable integration test scripts with JWT login handling, auth/authorization test patterns, and pass/fail summaries. - Use Case: After implementing a new admin API feature for ticket RGDEV-33, ask the Skill to build the integration tests; it produces a Docs test plan and a runnable scripts/integration_RGDEV-33.py file, then updates the docs with actual results. ## Quick Start Ask the assistant to create integration tests for a specific ticket or API feature, providing the ticket ID and the app whose endpoints should be tested.

Frequently Asked Questions about integration-test-builder

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

FAQPage Schema
How do I create integration tests for a Django REST API endpoint?

Identify the ticket and read the app's urls.py, views.py, services.py, and models.py to extract endpoints and expected codes. Then generate a Markdown test plan and a Python script using the provided template, and run it against a running backend.

How do I test JWT-authenticated API endpoints with Python requests?

Log in via the authentication endpoint, extract the token from the response, and send it as a Bearer token in the Authorization header. The generated APIClient class handles login, token storage, and authenticated GET, POST, PUT, and DELETE requests.

Why does my login request return 404 during API integration testing?

The login endpoint path is likely wrong; this codebase uses /api/v1/authentication/login/ rather than /api/v1/auth/login/. Also verify the backend server is running and reachable before executing the test script.

Why is the access token not extracted after a successful login?

The token location varies by codebase; here it is nested in data.tokens rather than data.access. The template's login handler checks multiple response shapes and stores whichever token field is present.

How do I test that an endpoint requires admin privileges?

Log in as a non-admin user, call the protected endpoint, and verify it returns 403. The template includes a requires-admin test pattern that saves and restores the admin token around the check.

What prerequisites are needed before running the generated integration test script?

The backend must be running at the configured URL, migrations must be applied, and test accounts (admin, provider, client) must exist in the database. The script checks backend reachability and exits with guidance if it cannot connect.