File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6872python -m doctest -v filename.py
6973```
7074
71-
7275* run unittests:
7376
7477``` shell
7578python -m unittest -v test_file.py
7679```
80+
7781* run all unittests:
7882
7983``` shell
8084python -m unittest -v discover
8185```
86+
8287* run all tests with nose test:
8388
8489``` shell
8590nosetests
8691```
92+
8793* run one test with nosetest:
8894
8995``` shell
9096nosetests -v test_file.py
9197```
98+
9299## Credits
93100
94101* [ mongard] ( https://www.mongard.ir/courses/unittest )
You can’t perform that action at this time.
0 commit comments