in Python by
Q:
How to  Running a nose test?

▼ Show 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

Python
Learn More with Madanswer

Related questions

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