I'm on exercise 46 of Learn Python the Hard Way, and I'm meant to install nose and run nosetests. I've installed nose already using pip, but when I run nosetests in the directory above the 'tests' folder, I get the error:
'nosetests' is not recognized as an internal or external command, operable program or batch file.
If it's relevant, I've already modified the PATH variable to include full path of Python27/Scripts
and Python/Lib/site-package
.
nose collects tests automatically from python source files, directories and packages found in its working directory (which defaults to the current working directory). Any python source file, directory or package that matches the testMatch regular expression (by default: (?:^|[b_.
nose can be integrated with DocTest by using with-doctest option in athe bove command line. The result will be true if the test run is successful, or false if it fails or raises an uncaught exception. nose supports fixtures (setup and teardown methods) at the package, module, class, and test level.
pytest is capable of discovering and running tests written in unittest and nose. State true or false.
If you are still having trouble after following Warren Weckesser's instructions try uninstalling and reinstalling.
Using pip: pip uninstall nose
I found this worked for me on Windows 8 64 bit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With