0 votes
in Python by
How to  Running a nose test?

1 Answer

0 votes
by

Tests in sample_nose_test.py can be run using the below command.

python -m nose sample_nose_test.py

Output

.

----------------------

Ran 1 test in 0.000s

OK

For verbose output use -v option at the end.

python -m nose sample_nose_test.py -v

Output

sample_nose_test.test_sample_nosetest ... ok

-------------------------

Ran 1 test in 0.001s

OK

Related questions

0 votes
asked Jul 2, 2020 in Python by GeorgeBell
0 votes
asked Jul 16, 2020 in Python by GeorgeBell
...