https://github.com/ioncakephper/combinewordsdemo
Sample BDD Automation for a combineWords function
https://github.com/ioncakephper/combinewordsdemo
Last synced: 3 months ago
JSON representation
Sample BDD Automation for a combineWords function
- Host: GitHub
- URL: https://github.com/ioncakephper/combinewordsdemo
- Owner: ioncakephper
- License: mit
- Created: 2023-01-30T10:43:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T08:56:32.000Z (over 2 years ago)
- Last Synced: 2025-01-21T23:33:48.796Z (5 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# combineWordsDemo
Sample BDD Automation for a combineWords function.
## Overview
Use the following files as a sample of BDD (Behavioral Driven Development) Automation as follows:
- [combineWords.feature](./combineWords.feature) -- Gerking-based BDD problem description
- [combineWords.test.js](./combineWords.test.js) -- JavaScript test file for Jest implementing tests designed in .feature
- [combine.js](./combine.js) -- personal implementation of the function (some tests are likely to fail)## What to test
The requirement reads as follows:
> Sa rezolve problema aceasta pentru BRD Automation:
> Se dau doua siruri de caractere:
> Input1: "teste"
> Input2: "teae"
> Sa se obtina al treilea sir care reprezinta caracterele comune ale sirurilor si frecventa lor descrescator.
> Output: "e2t1"## How to test
- Install Jest as CLI
```bash
npm i -g jest
```- Run the test file with Jest
```bash
jest combineWords.test.js
```## Note
The initial request indicated BRD (Business Requirement Document) Automation, but I elected to understand BDD (Behavioral Driven Development).
Should a BRD is expected, please let me know.