An open API service indexing awesome lists of open source software.

https://github.com/prak112/bdd-practice

Behavior-Driven Development practice through hands-on exercises from Cucumber School using cucumber-js.
https://github.com/prak112/bdd-practice

cucumber-js

Last synced: 4 months ago
JSON representation

Behavior-Driven Development practice through hands-on exercises from Cucumber School using cucumber-js.

Awesome Lists containing this project

README

        

# Overview
- Behavior-Driven Development (BDD) practice application developed through hands-on exercises from [Cucumber School](https://school.cucumber.io/courses/bdd-with-cucumber-javascript) using `cucumber-js`

- BDD involves three important phases of development of a software project/application :
- Discovery (discussion through multiple perspectives on the scope of the behavior, aka, scenario)
- Formulation (formulate the scenario through *Gherkin*)
- Automation (*Cucumber* verifies the formulated scenario with the actual system behavior)

- In the practice project, we are building an example application called 'Shouty' - a social network which can only be “heard” by people who are nearby.

- Detailed notes about the learnings can be found [on Google Docs](https://docs.google.com/document/d/1JZ2JUtGRxU9gUtF3OTyXZeZFy3W9chpG-dRPmBsnckU/edit?usp=sharing)




# Usage
## Installation

1. Clone the repository:
```sh
git clone https://github.com/prak112/bdd-practice.git
```
2. Navigate to the project directory:
```sh
cd bdd-practice
```
3. Install the dependencies:
```sh
npm install
```

## Running Tests

Run the tests:
```sh
npm test
```

## Running Specific Features

To run specific feature files, use the following command:
```sh
npx cucumber-js path/to/your/feature/file.feature
```

## Additional Scripts

- To run tests with a specific tag:
```sh
npx cucumber-js --tags "@yourTag"
```
- To generate a report:
```sh
npx cucumber-js --format json:report.json
```




# Credits
- [Cucumber School](https://school.cucumber.io/collections)