Application of BDD and TDD techniques for testing a simple API
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
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
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.
🚧 Documentation and description of concepts in progress 🚧