Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jeremylongshorev1.27.0MITIn 1 marketplace
Generates REST and GraphQL API test suites covering CRUD, auth flows and contract validation against OpenAPI specs. Output targets frameworks such as Supertest, httpx/pytest and Postman/Newman.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
api-testing, contract-testing, test-generation, endpoint-testing, authentication-tests, api, rest, endpoints ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automated API endpoint testing with intelligent test generation, validation, and comprehensive coverage for REST and GraphQL APIs.
/plugin install api-test-automation@claude-code-plugins-plus
The API testing agent activates automatically when you mention API testing needs. You can also invoke directly:
Generate API tests for the user management endpoints in src/routes/users.js
Create GraphQL API tests for the product queries and mutations
Generate contract tests validating against openapi.yaml
Create tests for JWT authentication including login, refresh, and protected endpoints
// RESTful API test example
describe('User API', () => {
// Authentication tests
describe('POST /api/auth/login', () => {
it('should return JWT token with valid credentials', async () => {
const response = await api.post('/api/auth/login', {
email: '[email protected]',
[REDACTED:Password]
});
expect(response.status).toBe(200);
expect(response.data).toHaveProperty('token');
expect(response.data).toHaveProperty('user');
expect(response.data.user.email).toBe('[email protected]');
});
it('should return 401 with invalid credentials', async () => {
const response = await api.post('/api/auth/login', {
email: '[email protected]',
[REDACTED:Password]
});
expect(response.status).toBe(401);
expect(response.data.error).toBe('Invalid credentials');
});
});
// CRUD operations
describe('GET /api/users', () => {
it('should require authentication', async () => {
const response = await api.get('/api/users');
expect(response.status).toBe(401);
});
it('should return user list with valid token', async () => {
const response = await api.get('/api/users', {
headers: { Authorization: `Bearer ${authToken}` }
});
expect(response.status).toBe(200);
expect(Array.isArray(response.data)).toBe(true);
expect(response.data[0]).toHaveProperty('id');
expect(response.data[0]).toHaveProperty('email');
});
});
describe('POST /api/users', () => {
it('should create user with valid data', async () => {
const newUser = {
email: '[email protected]',
name: 'John Doe',
role: 'user'
};
const response = await api.post('/api/users', newUser, {
headers: { Authorization: `Bearer ${adminToken}` }
});
expect(response.status).toBe(201);
expect(response.data.email).toBe(newUser.email);
expect(response.data).toHaveProperty('id');
});
it('should validate required fields', async () => {
const response = await api.post('/api/users', {}, {
headers: { Authorization: `Bearer ${adminToken}` }
});
expect(response.status).toBe(400);
expect(response.data.errors).toContain('email');
});
});
});
// Authentication utility functions
async function loginUser(email, password) {
const response = await api.post('/api/auth/login', { email, password });
return response.data.token;
}
async function createTestUser(role = 'user') {
const user = {
email: `test-${Date.now()}@example.com`,
password: 'test123',
role
};
await api.post('/api/users', user, { headers: { Authorization: adminToken } });
return loginUser(user.email, user.password);
}
// Factory functions for test data
const userFactory = {
valid: () => ({
email: `user-${Date.now()}@example.com`,
name: 'Test User',
[REDACTED:Password]
}),
invalid: () => ({
email: 'invalid-email',
name: '',
password: '123' // Too short
})
};
describe('GraphQL API', () => {
describe('Query: user', () => {
it('should fetch user by ID', async () => {
const query = `
query GetUser($id: ID!) {
user(id: $id) {
id
email
name
}
}
`;
const response = await graphql.query(query, { id: userId });
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin api-test-automationPlugins from other owners that cover similar ground