[TIP] [nose-users] nosetty! (gezunteit)
jpellerin at gmail.com
Wed Mar 21 07:39:42 PDT 2007
On 3/20/07, Kumar McMillan <kumar.mcmillan at gmail.com> wrote:
> nosetty: A plugin to run nosetests more interactively
This is so awesome. What a great idea.
> But I'm writing because I need your help. If all this is enough for
> you to install the plugin and figure out how to get it working for
> your editor of choice then please add a note to the wiki:
Google code only lets project members (who also get svn write access)
edit the wiki, unfortunately. But here's my recipe for use with
1. Make sure you're running emacs server -- put (server-start) in your
.emacs, or if you just want to try, put it in some elisp file, select
it, and M-x eval-region.
2. Set your EDITOR to emacsclient (or if like me you're trying out the
emacs snapshot on ubuntu, but haven't chosen it as your active version
yet, set it to emacsclient.emacs-snapshot)
3. nosetests --tty --tty-edit-cmd="%(editor)s +%(lineno)s %(filename)s"
This will pop the file up in a new buffer (if you didn't already have
it open, or bring up the old buffer if you did)... make your edits,
then C-x # to send it back to emacsclient, which will exit, and you
can continue on your merry way in the tty.
More information about the testing-in-python