Giter VIP home page Giter VIP logo

demo-crypto-api's Introduction

Rust BDD API E2E Testing

This project is a Rust-based end-to-end (E2E) testing framework using the Cucumber testing framework for API testing. This project includes the setup for Docker to run the tests in a containerized environment.

Prerequisites

To set up and run this project, you need the following prerequisites installed:

Setting Up the Project

Cloning the Repository

git clone https://github.com/Ankit-Laddha/demo-crypto-api.git
cd demo-crypto-api

Setting Up Environment Variables

[IMP] We are dealing with few secrets for this project. So clone the .env.template file available in the root of the project and create another .env file. Add the actual values for those variables, they are gitIgnored to be safe.

Running Tests

Without Docker

To run all scenarios together

 cargo test --test cucumber_runner

To run all specific scenario

 cargo test --test cucumber_runner -- --tags=@tagname

e.g.

 cargo test --test cucumber_runner -- --tags=@ticker

With Docker

Build docker image

 docker build -t crypto-api .

To run all scenarios together

 docker run --rm -it crypto-api

To run all specific scenario

 docker run --rm -it crypto-api -- --tags=@tagname

e.g.

 docker run --rm -it crypto-api -- --tags=@ticker

Reports

Once the tests are run the results are reported on your console/terminal by default.

report_screenshot.png

demo-crypto-api's People

Contributors

ankit-laddha avatar

Watchers

 avatar

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.