integration-test-builder
Skill3 starsChanged 11 months agoApache-2.0View on GitHub
Build integration tests for APIs and services. Use when the user needs to test API endpoints, database interactions, or external service integrations.
In this repository100 other files it gives its agents.
- accessibility-checkerSkill
- analytics-trackerSkill
- api-contract-testerSkill
- api-documentation-generatorSkill
- api-rate-limiterSkill
- appstore-screenshot-resizerSkill
- architecture-documenterSkill
- authentication-implementerSkill
- aws-resource-provisionerSkill
- browser-extension-builderSkill
- caching-implementerSkill
- changelog-generatorSkill
- chart-generatorSkill
- ci-pipeline-debuggerSkill
- cli-tool-builderSkill
- code-documenterSkill
- code-explainerSkill
- code-migration-helperSkill
- code-refactorerSkill
- code-reviewerSkill
- color-palette-generatorSkill
- comment-generatorSkill
- contributing-guide-writerSkill
- cron-job-schedulerSkill
- css-animatorSkill
- csv-processorSkill
- data-aggregatorSkill
- database-backup-restoreSkill
- database-migration-generatorSkill
- database-query-optimizerSkill
- data-transformerSkill
- data-validatorSkill
- date-time-helperSkill
- debug-helperSkill
- dependency-updaterSkill
- dependency-vulnerability-checkerSkill
- discord-bot-builderSkill
- docker-compose-builderSkill
- dockerfile-generatorSkill
- e2e-test-builderSkill
- email-template-builderSkill
- env-setupSkill
- error-handlerSkill
- error-message-writerSkill
- error-response-handlerSkill
- etl-pipeline-builderSkill
- file-organizerSkill
- form-builderSkill
- git-commit-messageSkill
- github-actions-builderSkill
- gitignore-generatorSkill
- graphql-schema-builderSkill
- icon-system-builderSkill
- input-validatorSkill
- jsdoc-generatorSkill
- json-schema-generatorSkill
- kubernetes-manifest-generatorSkill
- license-chooserSkill
- linter-fixerSkill
- load-testerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create comprehensive integration tests for APIs and services.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Integration Test Builder
Create comprehensive integration tests for APIs and services.
API Testing (Supertest + Jest)
import request from 'supertest';
import app from '../src/app';
import { setupDatabase, teardownDatabase, createTestUser } from './helpers';
describe('Users API', () => {
beforeAll(async () => {
await setupDatabase();
});
afterAll(async () => {
await teardownDatabase();
});
describe('POST /api/users', () => {
it('should create a new user', async () => {
const response = await request(app)
.post('/api/users')
.send({
email: 'test@example.com',
password: 'password123',
name: 'Test User',
})
.expect('Content-Type', /json/)
.expect(201);
expect(response.body).toMatchObject({
data: {
email: 'test@example.com',
name: 'Test User',
},
});
expect(response.body.data).not.toHaveProperty('password');
});
it('should return 400 for invalid email', async () => {
const response = await request(app)
.post('/api/users')
.send({ email: 'invalid', password: 'password123' })
.expect(400);
expect(response.body.error.code).toBe('VALIDATION_ERROR');
});
});
describe('GET /api/users/:id', () => {
it('should return user with valid auth', async () => {
const { user, token } = await createTestUser();
const response = await request(app)
.get(`/api/users/${user.id}`)
.set('Authorization', `Bearer ${token}`)
.expect(200);
expect(response.body.data.id).toBe(user.id);
});
it('should return 401 without auth', async () => {
await request(app)
.get('/api/users/1')
.expect(401);
});
});
});Database Integration Tests
import { PrismaClient } from '@prisma/client';
import { createUser, getUser } from '../src/services/user';
const prisma = new PrismaClient();
describe('User Service', () => {
beforeEach(async () => {
await prisma.user.deleteMany();
});
afterAll(async () => {
await prisma.$disconnect();
});
it('should create and retrieve user', async () => {
const created = await createUser({
email: 'test@example.com',
name: 'Test',
});
const retrieved = await getUser(created.id);
expect(retrieved).toMatchObject({
email: 'test@example.com',
name: 'Test',
});
});
});pytest (Python)
import pytest
from fastapi.testclient import TestClient
from app.main import app
from app.database import get_db, Base, engine
@pytest.fixture
def client():
Base.metadata.create_all(bind=engine)
with TestClient(app) as c:
yield c
Base.metadata.drop_all(bind=engine)
def test_create_user(client):
response = client.post("/api/users", json={
"email": "test@example.com",
"password": "password123"
})
assert response.status_code == 201
assert response.json()["email"] == "test@example.com"
def test_get_user_unauthorized(client):
response = client.get("/api/users/1")
assert response.status_code == 401Test Categories
| Type | What to Test |
| Happy path | Normal successful operations |
| Error handling | Invalid inputs, failures |
| Authentication | Auth required, permissions |
| Edge cases | Empty data, limits, timeouts |
| Concurrency | Race conditions, deadlocks |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

