Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apitance

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apitance

Elegant, expressive and versatile acceptance HTTP API tests

  • 0.1.0-beta.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

apitance Build Status Dependency Status Code Climate NPM

Elegant, versatile and expressive behavior-driven acceptance tests for HTTP APIs based on Gherkin language and built-on-top of Cucumber

Still work in progress

Features

  • Generic and reusable steps with expressiveness and multiple alias
  • Full HTTP protocol features support, including authentication, headers, cookies
  • High number of assert/expectation expressions for responses validation
  • Request/responses caching, reuse and chaining
  • Validate body responses against JSON schema
  • API discovering based on RAML
  • Support all the Cucumber.js features, such as hooks, configuration, stages...
  • Built-in support for templating and variables such as environment variables
  • Extended syntax with conditionals, control flow and more...
  • Send body payload data from external files or remote servers
  • Extending support. You can create or overwrite custom steps

Installation

Apitance requires you have installed node.js or io.js

[sudo] npm install -g apitance

Or install it as standalone self-contained package:

sudo curl -s -L https://raw.github.com/h2non/apitance/master/bin/install | bash

Usage

$ apitance -r features/user.feature

Command-line interface

Getting help

$ apitance --help
$ apitance -r path/to/steps path/to/feature

Contributing

Wanna help?

apitance is completely written in JavaScript Harmony (ECMAScript 6)

You must add new test cases for any new feature or refactor you do, always following the same design/code patterns that already exist

Development

Only node.js is required for development

Clone/fork this repository

$ git clone https://github.com/h2non/apitance.git && cd apitance

Install dependencies

$ npm install

Compile code

$ make compile

Run tests

$ make test

License

MIT © Tomas Aparicio

Keywords

FAQs

Package last updated on 23 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc