SuperTest logo

SuperTest

A library for testing node.js HTTP servers
931
102
+ 1
0

What is SuperTest?

It is a super-agent driven library for testing node.js HTTP servers using a fluent API. It provides a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.
SuperTest is a tool in the Javascript Testing Framework category of a tech stack.
SuperTest is an open source tool with GitHub stars and GitHub forks. Here’s a link to SuperTest's open source repository on GitHub

Who uses SuperTest?

Companies
31 companies reportedly use SuperTest in their tech stacks, including FASHION CLOUD, Brainhub, and Tipoff.

Developers
259 developers on StackShare have stated that they use SuperTest.
Decisions about SuperTest

Here are some stack decisions, common use cases and reviews by companies and developers who chose SuperTest in their tech stack.

Anurag Maurya
Needs advice
on
ExpressJSExpressJSJavaScriptJavaScript
and
Node.jsNode.js

Needs advice on code coverage tool in Node.js/ExpressJS with External API Testing Framework

Hello community,

I have a web application with the backend developed using Node.js and Express.js. The backend server is in one directory, and I have a separate API testing framework, made using SuperTest, Mocha, and Chai, in another directory. The testing framework pings the API, retrieves responses, and performs validations.

I'm currently looking for a code coverage tool that can accurately measure the code coverage of my backend code when triggered by the API testing framework. I've tried using Istanbul and NYC with instrumented code, but the results are not as expected.

Could you please recommend a reliable code coverage tool or suggest an approach to effectively measure the code coverage of my Node.js/Express.js backend code in this setup?

See more
Needs advice
on
PostmanPostman
and
SuperTestSuperTest

hello, I have started with Postman and SuperTest,, however I feel like both does a similar task, so please if anyone can advice me regarding what to choose for learning advanced content from both and what makes them different

See more

SuperTest's Features

  • HTTP assertions
  • Asynchronous
  • Promise support

SuperTest Alternatives & Comparisons

What are some alternatives to SuperTest?
Chai
It is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. It has several interfaces that allow the developer to choose the most comfortable. The chain-capable BDD styles provide an expressive language & readable style, while the TDD assert style provides a more classical feel.
jsdom
It is a pure-JavaScript implementation of many web standards, notably the WHATWG DOM and HTML Standards, for use with Node.js. In general, the goal of the project is to emulate enough of a subset of a web browser to be useful for testing and scraping real-world web applications.
Jest
Jest provides you with multiple layers on top of Jasmine.
axios
It is a Javascript library used to make http requests from node.js or XMLHttpRequests from the browser and it supports the Promise API that is native to JS ES6.
Postman
It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
See all alternatives

SuperTest's Followers
102 developers follow SuperTest to keep up with related blogs and decisions.