Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencredo/js-api-testing-quickstart
A quickstart project for testing APIs with javascript, mocha and chai
https://github.com/opencredo/js-api-testing-quickstart
api-testing axios chai flow javascript mocha testing
Last synced: 3 months ago
JSON representation
A quickstart project for testing APIs with javascript, mocha and chai
- Host: GitHub
- URL: https://github.com/opencredo/js-api-testing-quickstart
- Owner: opencredo
- Archived: true
- Created: 2017-04-27T11:17:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T10:40:19.000Z (over 7 years ago)
- Last Synced: 2024-09-21T09:02:23.342Z (3 months ago)
- Topics: api-testing, axios, chai, flow, javascript, mocha, testing
- Language: JavaScript
- Size: 12.7 KB
- Stars: 15
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Mocha / Chai Javascript test framework
An example test framework to get started with API testing using Javascript. Uses the TheyWorkForYou.com API as an example.
## Tech stack
- Javascript
- Mocha: Node.js based testing framework
- Chai: assertion library
- Axios: promise-based async http client
- Flow: static type checker## How to get started
- Get an API key from https://www.theyworkforyou.com/api/key - you'll have to sign up for an account
- Export the API key to your environment: `export TWFY_KEY=...`
- Clone the project and cd into the project directory
- Download dependencies: `npm build`Now you can just run the tests: `npm test`
All done!