[TIP] [newbie] run nose tests contained in the current emacs buffer

Augie Fackler lists at durin42.com
Fri Jul 29 10:39:10 PDT 2011

On Jul 29, 2011, at 6:09 AM, jason pellerin wrote:

>>> nosetests -v   -w nil -c nilsetup.cfg /home/me/code/python/nose/test_me.py
> The '-w nil' is the problem -- nose.el is unable to find your
> project's root directory. By default it 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, or change the way it tests for
> rootness of a directory by setting nose-project-root-test. Or just
> touch setup.py in your project root. ;)

Hm. I'd welcome a patch to catch the nil in emacs and error out rather than do a bogus nose call. I might get to it eventually.

> JP
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

More information about the testing-in-python mailing list