https://github.com/julianolf/python-tests
Test examples written in Python with unittest
https://github.com/julianolf/python-tests
examples python testing
Last synced: 11 months ago
JSON representation
Test examples written in Python with unittest
- Host: GitHub
- URL: https://github.com/julianolf/python-tests
- Owner: julianolf
- License: unlicense
- Created: 2022-06-08T21:11:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T21:41:37.000Z (about 4 years ago)
- Last Synced: 2025-03-24T05:44:06.591Z (over 1 year ago)
- Topics: examples, python, testing
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PYTHON-TESTS


A few tests examples written in Python using the unittest framework.
## Running the tests
To run all tests in this repository execute the following command at the root directory:
```shell
$ python -m unittest discover -p "*test*.py"
```
And for a more detailed output add `-v` to the end of the command.
For a single test replace the _discovery_ argument and everything that comes afterwards with the full module path to the desired test.
```shell
$ python -m unittest ex02.test_calc.TestAdd.test_add_two_positive_numbers
```