[TIP] [newbie] run nose tests contained in the current emacs buffer
Tom_Roche at pobox.com
Fri Jul 29 11:25:09 PDT 2011
Tom Roche Thu, Jul 28, 2011 at 8:47 PM
>> nosetests -v -w nil -c nilsetup.cfg /home/me/code/python/nose/test_me.py
jason pellerin Fri, Jul 29, 2011 at 9:09 AM
> The '-w nil' is the problem -- nose.el is unable to find your
> project's root directory.
Correct. Note this used an untouched nose.el OOTB from bitbucket.
> By default [nose.el] looks for the root directory by backing up from
> the file it is given, looking for any of 'setup.py', '.hg' or '.git'.
> You can modify the files it looks for by modifying nose-project-root-files
That fails for me; details @
> or change the way it tests for rootness of a directory by setting
Didn't try that.
> Or just touch setup.py in your project root.
fwiw, Tom Roche <Tom_Roche at pobox.com>
More information about the testing-in-python