/desafio-tdd-bdd

🧪 Repositório do desafio do módulo JavaScript Testing do curso JavaScript Expert

Primary LanguageJavaScript

🚗 Car Rent, a BDD and TDD project

Application of BDD and TDD techniques for testing a simple API

Table of content

Prerequisites

Before you start, you need to have the following tools on your machine: Git and Node.js. Also, it's good to have a code editor like VSCode

Install

Whereas the currently selected folder is folder's project

# Clone this repository
$ git clone https://github.com/LuscaLima/desafio-tdd-bdd.git

# Access the folder project
$ cd desafio-tdd-bdd

# Install the dependencies
$ npm install
# or
$ yarn install

Running tests

Whereas the currently selected folder is folder's project

For tests:

# Run the tests
$ npm run test
# or
$ yarn test

The results will be displayed in the terminal.

For coverage tests:

# Run the coverage tests
$ npm run test:cov
# or
$ yarn test:cov

In coverage case, the results will be displayed in two folders too, as HTML.

Status

🚧 Documentation and description of concepts in progress 🚧