Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Pick API Testing Tools From 5 Categories

A minimal, runnable Express + SuperTest starter (Node's built-in node:test runner) demonstrating status-code, response-shape, and negative-case assertions for a small users API.

Companion code for the Autonoma blog post: How to Pick API Testing Tools From 5 Categories

Requirements

Node 18 or newer.

Quickstart

git clone https://github.com/Autonoma-Tools/api-testing-tools.git
cd api-testing-tools
npm install
npm test

Two commands: npm install, then npm test. You should see 5 passing tests.

What the suite asserts

The five tests cover status codes, response shape, and the negative cases: a 404 for a user that does not exist and a 400 for a POST /users body missing name.

Tests run on Node's built-in node:test runner (npm test is just node --test), so there is no test framework to install. The only dependencies are express for the app under test and supertest for issuing requests against it without binding a port.

Project structure

api-testing-tools/
├── app.js                 # Express app: /health, GET /users/:id, POST /users
├── package.json           # deps + `npm test` script
└── test/
    └── users.test.js      # 5 tests: status codes, response shape, 404 + 400

app.js exports the Express app rather than calling listen(), which is what lets SuperTest drive it in-process.

About

This repository is maintained by Autonoma as reference material for the linked blog post. Autonoma builds autonomous AI agents that plan, execute, and maintain end-to-end tests directly from your codebase.

If something here is wrong, out of date, or unclear, please open an issue.

License

Released under the MIT License © 2026 Autonoma Labs.

About

Companion code for the Autonoma blog post 'How to Pick API Testing Tools From 5 Categories'.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages