To add to the currently top but unaccepted answer, the python.org documentation for the unittest module indicates that the default filename pattern matcher for the module's test discovery feature is "test*.py".
A basic normal way to run unittest tests to automatically 'discover' test files with that filename pattern matcher is with python -m unittest discover
.
Normal usage for running tests with the module includes specifying other pattern matcher strings as input arguments. Specifying a different pattern matcher looks like python -m unittest discover -p 'unusual_test_filenames*.py
.
Here is a link to the unittest module documentation about test discovery on python.org about unittest #test discovery for reference.
test_routes_nameofroute.py
but I wanted to make a new test suite calledtest_jobs_database.py
and for some dumb reason I get an entire segfault and the tests will not run. It's only once I rename totest_routes_database.py
that it works. What gives?? – Verso