Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandoncardoso/test-driven-development-examples
Code and process from 'Test-Driven Development by Example' by Kent Beck, in typescript.
https://github.com/brandoncardoso/test-driven-development-examples
example-code tdd test-driven-development typescript
Last synced: 12 days ago
JSON representation
Code and process from 'Test-Driven Development by Example' by Kent Beck, in typescript.
- Host: GitHub
- URL: https://github.com/brandoncardoso/test-driven-development-examples
- Owner: brandoncardoso
- Created: 2023-01-28T12:24:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T18:59:03.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T10:07:43.450Z (about 2 months ago)
- Topics: example-code, tdd, test-driven-development, typescript
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test Driven Development (TDD) Examples
Examples from "Test-Driven Development By Example" by Kent Beck, in typescript.Each commit is one step in the TDD process, as described in the book. There is a branch for each part/chapter, see the READMEs in the related src directory.
The commits in this repository do not reflect proper git usage while following TDD. You should probably not commit purposefully failing tests or code that does not compile, especially if you are working on the same repository/branch as other people.
## Setup
To get started, run `npm install` to install all dependencies.### Part 1
Run tests with `npm run test:part1` or `npm run test:part1:dev` to automatically run tests after new changes.### Part 2
"Part 2: The xUnit Problem" involves creating our own testing framework, so has separate commands to run the tests that don't use mocha.Run the tests with `npm run test:part2` or `npm run test:part2:dev` to automatically run tests after new changes.