GithubHelp home page GithubHelp logo

RestQA logo

RestQA

Test Driven Happiness

Making Backend engineer happy by applying world class developer experience through Microservice Testing

npm package node compatility github action build Docker build discord chat

๐Ÿ“– Documentation

Still under development... The release 1.0.0 is coming soon, Feel free to contribute!

๐Ÿ˜ƒ Why Test Driven Happiness?

Within our DEV team while working with microservice, we realized a few thing:

  • WE HATE Writting Local Test
  • WE HATE Reviewing long unreadable Local Test full of mocks
  • WE HATE Maintaining the Integration Test
  • WE HATE Maintaining the Performance Test
  • WE HATE Maintaining the API specification
  • WE HATE Maintaining the postman collection
  • WE HATE Maintaining the HTTP Mocks
  • WE HATE Rewrite the test while changing the microservice technology

This is why we decided to challenge ourself on how to transform this frustration into a positive initative. RestQA was build with a simple goal: Driving the happiness of the DEV team through testing.

Run one command and get everything that you need to enjoy maintaining your microservice.

Synthax

Gherkin Based but KEEP CALM It aint's BDD!

Step definition

The RestQA Community maintains the step definitions! YOU focus on writting scenarios WE taking care of everything else ๐Ÿค—

Screenshot

๐Ÿ‘‰ Access to our online demo

Screenshot

Benefits

  • No Gherkin step to maintain (50+ steps out of the box)
  • Gherkin step maintain by the community
  • Test Ready in a minute
  • Outside in testing: Code refactoring friendly
  • Code Review friendly
  • Test driven development friendly
  • Mock ready in a minute
  • Community driven

โญ๏ธ Features

  • ๐ŸŒˆ Local API test as Single source of truth
  • ๐Ÿ’ฌ Write local API test using ordinary language
  • ๐Ÿšฆ Reuse your local API test to run the integration test
  • ๐ŸŽฏ Get code coverage from your local tests
  • ๐ŸŽ Generate Performace Test scenario compatible with your favorite Performance testing tool
  • ๐Ÿ“š Generate an up to date API specification from the test results
  • ๐Ÿ‘ฉโ€๐Ÿš€ Generate an up to date postman collection
  • ๐Ÿ• Instant result
  • ๐Ÿ‘‘ Programming language Agnostic
  • ๐Ÿ‘ฉโ€๐Ÿ’ป Community Driven

๐Ÿ•ต๏ธ Under the scene

Only one command to run and everything else is taking care of:

%%{init: {'theme': 'forest' } }%%
stateDiagram-v2
    direction LR
    state "npm test" as cmd
    state "RestQA" as restqa
    state "run tests" as runner
    state "Test report" as formatter
    state "Microservice" as mc
    state "External dependencies (container)" as extenal
    state "3rd party mock" as mock
    state "console output" as console

    [*] --> cmd
    cmd --> restqa
    state restqa {
      direction LR
      
      runner --> mc
      mc --> runner
      mc --> extenal
      extenal --> mc
     
      state mc {
        direction LR
        [*] --> running
        running --> [*]
      }

      state extenal {
        direction LR
        [*] --> mock
        mock --> [*]
      }
      mc --> result
      result --> formatter
      result --> console
    }

    restqa --> [*]

๐ŸŽฌ Demo

demo-restqa.mp4

๐Ÿ“ฆ Install

Once you get nodeJs on your local machine run the command

npm install -D @restqa/restqa@next
yarn add @restqa/restqa@next -D

๐ŸŽฏ Usage

In you package.json add the script:

  "scripts": {
    "test": "restqa run",
    "happy": "restqa run --report"
  }

Run the command:

npm test

It will automatically initialize RestQA into your project and generate the initial test for you ^^

Then you can Write your Unit Test Using ordinary language:

Feature: GET /api/infos

Scenario: Get the list of informations
Given a request
When GET "/api/info"
Then status = 200
  And the body:
  """
{
  "message": "Hello World!"
}
  """

Then simply run the command to get full report:

npm run happy

๐ŸŒˆ Example

Take a look at the examples folder to see a basic setup.

๐Ÿšง Roadmap

๐Ÿš€ Local Test
๐ŸŽ Performance Test
  • Artillery.io
  • K6 (Need contribution #291)
  • Jmeter (Need contribution #290)
  • Vegeta (Need contribution #289)

๐Ÿ“š API Specification

  • OAS (swagger)
  • Raml

๐Ÿ‘ฉโ€๐Ÿš€ API Collection

  • Postman

Big Love โค๏ธ

RestQA Team would like to give a hug ๐Ÿค— to thanks the excellent work of the following dependent open source project:

Contribution

See Contributing Guide.

Author

License

MIT License

RestQA's Projects

.github icon .github

:shipit: | Default organization policies

restqa icon restqa

๐Ÿฆ | Best in class Microservice automation testing. Test Driven Happiness

restqa-action icon restqa-action

:octocat: | A GitHub action to run your RestQa project's test automation suite

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.