https://github.com/midnighter/xunit
A working example of the xUnit testing tool described in Kent Beck's "Test-Driven Development by Example" implemented in more modern Python code.
https://github.com/midnighter/xunit
Last synced: 8 days ago
JSON representation
A working example of the xUnit testing tool described in Kent Beck's "Test-Driven Development by Example" implemented in more modern Python code.
- Host: GitHub
- URL: https://github.com/midnighter/xunit
- Owner: Midnighter
- License: unlicense
- Created: 2024-05-04T09:24:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T09:26:06.000Z (about 2 years ago)
- Last Synced: 2025-02-23T09:30:27.131Z (over 1 year ago)
- Language: Python
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xUnit
A working and iteratively worked example of the xUnit testing tool described in Kent
Beck's "Test-Driven Development by Example" implemented in more modern Python code. The
intention is that you can step through the git history of the project to explore the
evolution of the codebase.
## Installation
Install the project in editable mode with development dependencies, such as `pytest-watcher`.
```shell
pip install -e '.[dev]'
```
## Usage
During development, you can keep running the tests with the following command, for
example:
```shell
ptw . --runner python tests/system/test_case_test.py --clear
```
That initiates `pytest-watcher` which will watch for changes in the project
directory (`.`) and invoke the given command.
## Unlicense
This is free and unencumbered software released into the public domain.