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.
- Host: GitHub
- URL: https://github.com/prak112/bdd-practice
- Owner: prak112
- License: mit
- Created: 2024-11-11T15:15:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T16:03:05.000Z (8 months ago)
- Last Synced: 2025-01-15T01:41:46.633Z (5 months ago)
- Topics: cucumber-js
- Language: JavaScript
- Homepage: https://school.cucumber.io/collections
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
## Installation1. 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)