Skip to content

oslabs-beta/axon

Repository files navigation

Axon

Logo

Axon aids developers with Express.js based applications to autogenerate integration tests and Postman Collections by extracting RESTful API endpoints from your source code. Simply import your server folder and Axon will do the hard work for you!

MIT License Release: 1.0 PRs Welcome

Installation

Axon desktop application is available to install for Mac or Windows operating systems.

Download on Mac

Download on Windows

Features

  • Autogenerate Supertest integration tests
  • Create Postman Collections
  • Edit your generated code through Monaco Code Editor
  • Export your files into your application

Prerequisites

Make sure to have already installed Supertest and Jest in your project's dev-dependencies

npm install supertest --save

npm install jest --save

Demo

Open your Axon application to be greeted with a beautiful layout!

Alt Text

Step 1

Click on the "Import server folder" button, you will be redirected to your file folders. Choose the server folder from your Express based application.

til

Step 2

Click on the "Supertest" button to autogenerate your integration test from the API endpoints located in your server files.

til

Step 3

Click on the "Postman" button to create a Postman Collection that you can import into Postman and autogenerate manual tests.

til

Step 4

Enter your file name for either your Supertest or Postman Collection, make sure you are in the right tab before clicking on "Export" to download your files into your computer.

til

How To Import Postman Collection into Postman

After exporting your Postman Collection from Axon and saving it into your computer, open Postman, click on the Collections tab to the left of the screen, press the import button, then on the pop-up window drag and drop or simply upload your Postman Collection to autogenerate your endpoint tests.

til

Authors