How do you create test cases for APIs?

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • orchid-orm-benchmarks

    Orchid ORM benchmarks

  • Here are my tests for an example project. The logic is quite straightforward: create db records, make a request, check the response, and if it was a mutating request check how it affected the database.

  • WireMock

    A tool for mocking HTTP services

  • Check out https://wiremock.org/

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • pactum

    REST API Testing Tool for all levels in a Test Pyramid

  • PactumJS with JSON Schema integration.

  • json-schema-spec

    The JSON Schema specification

  • PactumJS with JSON Schema integration.

  • wirepig

    Better testing through the power of sockets.

  • Not sure which API you're referring to, but if you need to mock some other dependency over the network, check out wirepig (I'm the author).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts