mirror of
https://github.com/venomade/calculator.git
synced 2026-11-16 18:27:39 +00:00
Add calculator tests and a local quality gate
This commit is contained in:
1 parent
016ac885f7
commit
8dd5bcec50
5 files changed
+42
No files matched your search
@@ -14,3 +14,15 @@ Run: `./run.sh`
|
||||
- Lastly enter a second number
|
||||
- Read the result, printed as `Result: ` followed by the answer.
|
||||
- When done stop with `Ctrl+c`
|
||||
|
||||
## Testing
|
||||
- Enter a `venv` and install `pytest`:
|
||||
```sh
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
python3 -m pytest --version
|
||||
```
|
||||
- Run: `./test.sh`
|
||||
- All tests should return `PASSED` and the return code of `test.sh` should be `1`.
|
||||
|
||||
Reference in new issue
Block a user