Python Nosetesting
In your folder, when you have multiple test_files.py, running the following command picks them all up and runs them
nosetests -vv --exe --with-coverage --cover-erase --cover-html-dir=./tests/python/cover --cover-html --cover-inclusive --cover-package=app
— exe flag is needed as otherwise the files get skipped
— cover-package = to restrict the folder otherwise it runs through all dependencies
— cover-html = generate cover report to see missing lines
I had started a python shell to query the MySQL database through SQL Alchemy and that had locked up the tables. As a result, my nose tests were hanging — not running/exiting.
I killed the python processes which were locking up the tables and Nose was back up sniffing
> $ ps auxww | grep python | awk ‘{print $2}’ | sudo xargs kill -9