Lightning-Fast, Accurate, Open Source API Test Automation

Nap is a command-line tool that utilizes YAML files to test APIs.

mpb

Run large-scale workloads in a fraction of the time.

Nap super-charges your test automation workflow with parallel execution, breaking up test cases into groups that can be run in parallel.

Quickly and collaboratively test your HTTP APIs.

Nap’s syntax is simple enough to quickly jot down during the design process. Powerful asserts make writing test cases a breeze. Nap’s declarative YAML format means you can check your tests into source control to share them with your team.

Run locally or integrate with your favorite CI/CD tool.

Nap compiles cross-platform to a single executable file. Run in Windows, Linux or Mac OS with ease.

Get Started View on Github


Nap is a command-line interface (CLI) for running HTTP requests using YAML files with a clear, concise syntax. You can write routines, requests and even limited scripts using your favorite text editor. You can then check those files into source control and intregate Nap with your CI/CD pipeline.

Browse the docs to learn more about how Nap can save you and your customers time and frustration with better, faster test automation.

Why Nap?

Here are just a few of the reasons our users enjoy Nap:

  • REMARKABLE SPEED. Nap is able to break apart your test suite and run different parts of it at the same time. Even large-scale workloads only take about as long as your slowest scenario.
  • SIMPLIFIED SYNTAX. With Nap, there’s no need to memorize a bunch of cURL flags or open a big fancy editor to design your tests. Each request is a single, compact file.
  • VERSATILE EXPRESSIONS. Write your tests in expressions that make sense at first glance. Asserts, variable captures and even explicit javascript are all at your disposal.

Getting Started

There are two ways to get started using Nap.

Download

You can download directly from the dist folder on Github, or use one of the quick download buttons:

Download for Windows (x64) - v0.4.8 Other Platforms (View All)

Once downloaded, add nap’s location into your $PATH for convenience.

Using Go

If you already have the Go language installed, simply run the command to install nap:

$ go install github.com/davesheldon/nap@latest

Once you have Nap installed, go read about The Basics to start writing your first test.

Credits

Nap was heavily inspired by another HTTP CLI project called Hurl. If you don’t find Nap useful, you may like Hurl instead.