Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrienjoly/craft-with-typescript-template
A Software Crafter template to write and test clean TypeScript code with Visual Studio Code, BDD style.
https://github.com/adrienjoly/craft-with-typescript-template
bdd behavior-driven-development cucumber gherkin javascript typescript vscode
Last synced: about 2 months ago
JSON representation
A Software Crafter template to write and test clean TypeScript code with Visual Studio Code, BDD style.
- Host: GitHub
- URL: https://github.com/adrienjoly/craft-with-typescript-template
- Owner: adrienjoly
- License: mit
- Created: 2020-03-06T10:23:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T06:21:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-24T17:41:54.649Z (2 months ago)
- Topics: bdd, behavior-driven-development, cucumber, gherkin, javascript, typescript, vscode
- Language: TypeScript
- Homepage:
- Size: 352 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Node.js CI](https://github.com/adrienjoly/craft-with-typescript-template/workflows/Node.js%20CI/badge.svg)
# Template: Craft with TypeScript
A Software Crafter template to write and test clean TypeScript code with Visual Studio Code, BDD style.
This template is based upon a "Pandemic" game implemented during a BDD training (Behavior Driven Development) given by Benjamin Hugot, using Cucumber/Gherkin and JavaScript: [bdd-example-with-cucumber-and-vscode](https://github.com/adrienjoly/bdd-example-with-cucumber-and-vscode/releases/tag/v1.0.0). It's also inspired by [hdorgeval/cucumber7-ts-starter: Starter project to write and debug cucumber-js features in TypeScript language](https://github.com/hdorgeval/cucumber7-ts-starter).
## How to run tests
```sh
$ nvm use # to use the version of node.js specified in .nvmrc
$ npm install
$ npm test # or, in vscode, press Ctrl-F5
```You should get:
```
9 scenarios (9 passed)
26 steps (26 passed)
```## Documentation on how to write tests with Cucumber-js
- [Todd Anderson - BDD in JavaScript: CucumberJS](https://custardbelly.com/blog/blog-posts/2014/01/08/bdd-in-js-cucumberjs/index.html)
- [Todd Anderson - BDD in JavaScript II: CucumberJS, the World and Background](https://www.custardbelly.com/blog/blog-posts/2014/01/22/cucumberjs-world/index.html)
- [cucumber-js/nodejs_example.md at master · cucumber/cucumber-js](https://github.com/cucumber/cucumber-js/blob/master/docs/nodejs_example.md)
- [cucumber-js/step_definitions.md at master · cucumber/cucumber-js](https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/step_definitions.md)
- [cucumber-js/api_reference.md at master · cucumber/cucumber-js](https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/api_reference.md)
- [Cucumber Cheatsheet](https://gist.github.com/yuriiik/5728701)