Skip to content

Commit 9e934d8

Browse files
committed
nose test & fixture for unittest (setup - teardown)
1 parent 398b11f commit 9e934d8

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ Hello this is [Mr.Rezoo](https://www.linkedin.com/in/reza-mobaraki/)
1010
* [Technologies](#Technologies)
1111
* [Help](#Help)
1212
* [Setup](#Setup)
13+
* [Usage](#Usage)
1314
* [Credits](#credits)
1415
* [Contributors](#Contributors)
1516
* [License](#license)
1617

1718
## General info
1819

19-
in this repository We work on 4 way to testing our application
20-
In the simplest possible way. . .
20+
in this repository We work on 4 way to testing our application In the simplest
21+
possible way. . .
2122

2223
* unittest
2324
* doctest
@@ -63,32 +64,38 @@ source venv/bin/activate
6364
pip install -r requirements.txt
6465
```
6566

67+
## Usage
68+
6669
* run doctest: -v for more detail
70+
6771
```shell
6872
python -m doctest -v filename.py
6973
```
7074

71-
7275
* run unittests:
7376

7477
```shell
7578
python -m unittest -v test_file.py
7679
```
80+
7781
* run all unittests:
7882

7983
```shell
8084
python -m unittest -v discover
8185
```
86+
8287
* run all tests with nose test:
8388

8489
```shell
8590
nosetests
8691
```
92+
8793
* run one test with nosetest:
8894

8995
```shell
9096
nosetests -v test_file.py
9197
```
98+
9299
## Credits
93100

94101
* [mongard](https://www.mongard.ir/courses/unittest)

0 commit comments

Comments
 (0)