awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
visionmedia avatar

visionmedia/supertest

0
View on GitHub↗
14,365 stars·783 forks·JavaScript·MIT·14 views

Supertest

Supertest is a Node.js HTTP testing library that provides a framework for making requests and asserting responses from web servers. It functions as an HTTP assertion framework designed to verify status codes, response bodies, and headers during automated server tests.

The library features an ephemeral port server manager that automatically binds servers to random available ports, removing the need for manual port tracking and preventing conflicts during concurrent test execution. It also includes an HTTP session state manager to persist cookies and session data across multiple sequential requests.

Its capabilities cover REST API validation and automated server integration through a fluent interface. The tool supports the verification of cookie state and the persistence of user sessions across a single host.

Features

  • Node.js Test Automation - Provides a specialized framework for automating HTTP tests for web servers within the Node.js runtime.
  • Dynamic Port Listeners - Automatically binds servers to random available ports to prevent conflicts during concurrent test execution.
  • Session & Cookie Handlers - Maintains user session state by storing and re-injecting cookies across sequential HTTP requests.
  • HTTP Response Assertions - Provides a fluent mechanism to verify HTTP response properties like status codes and bodies.
  • Server Integration Testing - Tests Node.js servers using ephemeral ports to avoid manual port management and conflicts.
  • API Response Validation - Checks that HTTP server responses meet specific requirements for headers, body content, and status codes.
  • Stateful Session Persistence - Maintains browser context and authentication state via cookies across multi-step web interactions.
  • HTTP Session Persisters - Persists cookies and session data across multiple requests to simulate continuous user sessions.
  • Session State Validation - Verifies that web servers correctly handle cookies and maintain user session state across sequential requests.
  • Fluent Interfaces - Implements a fluent interface for chaining HTTP requests and assertions in a readable manner.
  • Request Interceptors - Wraps an HTTP client to intercept requests and pipe them directly into a running Node.js server instance.
  • In-Process Server Testing - Allows running the target server within the same Node.js process as the test runner for direct access to internals.
  • Test Server Orchestration - Automatically binds servers to ephemeral ports to eliminate manual port tracking during test execution.
  • Testing Frameworks - HTTP server testing library.
  • Web Framework Integrations - HTTP assertion library for testing Node.js APIs.

Star history

Star history chart for visionmedia/supertestStar history chart for visionmedia/supertest

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Supertest

Similar open-source projects, ranked by how many features they share with Supertest.
  • goldbergyoni/nodejs-testing-best-practicesgoldbergyoni avatar

    goldbergyoni/nodejs-testing-best-practices

    4,365View on GitHub↗

    This project is a comprehensive guide and collection of best practices for testing Node.js backend applications. It provides a curated set of patterns and reference examples for writing reliable unit, integration, and component tests. The project distinguishes itself through specific strategies for backend integration, including detailed methods for API contract testing against OpenAPI specifications and shared schemas. It offers specialized guidance on managing message queue testing, focusing on idempotency, resilience, and asynchronous event synchronization. The guide covers a broad range

    JavaScriptbackendbest-practicescomponent-testing
    View on GitHub↗4,365
  • rest-assured/rest-assuredrest-assured avatar

    rest-assured/rest-assured

    7,127View on GitHub↗

    Rest-assured is a Java-based REST API testing framework and HTTP client library designed for automating web service tests. It provides a fluent domain-specific language and assertion library to send HTTP requests and validate response metadata, including status codes, headers, cookies, and bodies. The framework is distinguished by a method-chaining DSL that creates readable specifications for API interactions. It features a filter-based request interception pipeline, object-mapping serialization for converting Java objects to JSON or XML, and a path-based parsing system to isolate specific fi

    Java
    View on GitHub↗7,127
  • nightwatchjs/nightwatchnightwatchjs avatar

    nightwatchjs/nightwatch

    11,948View on GitHub↗

    Nightwatch is a Node.js test automation tool and W3C WebDriver test framework designed for executing functional test suites and verifying system behavior. It provides a suite of utilities for web browser automation, native mobile application testing, and REST API validation. The project includes specialized tools for visual regression testing, which compares current screenshots against baseline images to detect unexpected changes. It also features an accessibility auditing tool to check user interface elements against established standards for compliance. The framework covers a broad range o

    JavaScriptautomated-testingchromedriverend-to-end-testing
    View on GitHub↗11,948
  • alsotang/node-lessonsalsotang avatar

    alsotang/node-lessons

    16,450View on GitHub↗

    node-lessons is a comprehensive Node.js programming course and instructional guide. It provides a collection of guided lessons and code examples designed to teach the fundamentals of the Node.js runtime and server-side JavaScript development. The project serves as a practical guide for building web servers and backend applications, specifically covering the implementation of HTTP servers, request routing, and middleware chains. It includes specialized instructional material on managing asynchronous JavaScript workflows through promises and flow control, as well as guides for integrating NoSQL

    JavaScriptjavascriptnodejs
    View on GitHub↗16,450
See all 30 alternatives to Supertest→

Frequently asked questions

What does visionmedia/supertest do?

Supertest is a Node.js HTTP testing library that provides a framework for making requests and asserting responses from web servers. It functions as an HTTP assertion framework designed to verify status codes, response bodies, and headers during automated server tests.

What are the main features of visionmedia/supertest?

The main features of visionmedia/supertest are: Node.js Test Automation, Dynamic Port Listeners, Session & Cookie Handlers, HTTP Response Assertions, Server Integration Testing, API Response Validation, Stateful Session Persistence, HTTP Session Persisters.

What are some open-source alternatives to visionmedia/supertest?

Open-source alternatives to visionmedia/supertest include: goldbergyoni/nodejs-testing-best-practices — This project is a comprehensive guide and collection of best practices for testing Node.js backend applications. It… rest-assured/rest-assured — Rest-assured is a Java-based REST API testing framework and HTTP client library designed for automating web service… nightwatchjs/nightwatch — Nightwatch is a Node.js test automation tool and W3C WebDriver test framework designed for executing functional test… alsotang/node-lessons — node-lessons is a comprehensive Node.js programming course and instructional guide. It provides a collection of guided… sindresorhus/ava — Ava is a concurrent test runner for Node.js that executes test files in parallel using worker thread isolation to… teamhanko/hanko — Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey…