<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>jessenoller.com comments - Latest Comments in What are your favorite nose plugins? How do you run Nose?</title><link>http://pyjesse.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 13 May 2008 14:31:04 -0000</lastBuildDate><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-457459</link><description>I don't know if it's considered a plugin, but using --with-coverage and --cover-package (you'll need the coverage module), is great for finding gaps in testing.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">programmer.py</dc:creator><pubDate>Tue, 13 May 2008 14:31:04 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-457326</link><description>Well, I have a little plugin not yet published, nose-notify. It uses the gnome notify system, but can be implemented with growl on Macintosh.&lt;br&gt;&lt;br&gt;&lt;a href="http://www.assembla.com/wiki/show/nose_notify" rel="nofollow"&gt;http://www.assembla.com/wiki/show/nose_notify&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">waltercruz</dc:creator><pubDate>Tue, 13 May 2008 14:14:03 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-456821</link><description>I used the spec plugin that comes with Pinocchio.  At a minimum, it pushes me to write tests that focus on "invariants" of the things being tested.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">will</dc:creator><pubDate>Tue, 13 May 2008 12:51:16 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-456768</link><description>I recently discovered the builtin plugin --with-id and can't believe I ever lived without it.  When it's enabled you get numbered tests so you can re-run individual ones by saying `nosetests 23 45` instead of typing out long path names.&lt;br&gt;&lt;br&gt;I also miss nosetty, a plugin I wrote a while ago for 0.9 but have yet to port it to 0.10.  Quite a lot has changed in stream handling and I started the migration but didn't finish.  It was nice because it let you launch an editor at the exact spot in a traceback, especially nice if you need to apply a quick, experimental patch to a system egg.&lt;br&gt;&lt;br&gt;I also use NoseGAE for testing Google App Engine webapps in-process: &lt;a href="http://code.google.com/p/nose-gae/" rel="nofollow"&gt;http://code.google.com/p/nose-gae/&lt;/a&gt;&lt;br&gt;&lt;br&gt;btw, the official (unofficial?) list of all nose plugins is here: &lt;a href="http://nose-plugins.jottit.com/" rel="nofollow"&gt;http://nose-plugins.jottit.com/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kumar McMillan</dc:creator><pubDate>Tue, 13 May 2008 12:40:09 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-455933</link><description>Man, where do I start? Since my team uses it mainly for testing web interfaces - here's some things:&lt;br&gt;&lt;br&gt;Test generators are pretty key us. The same feature is in py.test - we use that feature of nose constantly on our team here @ work. &lt;br&gt;&lt;br&gt;The plugin architecture has also allowed us to be more flexible in what we can pass to our functional tests. We build custom plugins to allow more flexible test collection and execution. &lt;br&gt;&lt;br&gt;The underlying system of test collection is what has always attracted me. nose, in general, allows me to very quickly put together a suite of tests without have to deal with UnitTest boilerplate.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Terry Peppers</dc:creator><pubDate>Tue, 13 May 2008 10:37:30 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-455736</link><description>Well, all of the indenting was lost, but you get the idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stan</dc:creator><pubDate>Tue, 13 May 2008 10:00:46 -0000</pubDate></item><item><title>Re: What are your favorite nose plugins? How do you run Nose?</title><link>http://jessenoller.com/2008/05/13/what-are-your-favorite-nose-plugins-how-do-you-run-nose/#comment-455732</link><description>--pdb-failures is extremely useful for introspecting objects right when a unit test fails.  Usually I can figure out what went wrong pretty quick thanks to this.&lt;br&gt;&lt;br&gt;I also use nose to drive twill-based website unit tests:&lt;br&gt;(not sure how well this will paste)&lt;br&gt;&lt;br&gt;# test.py&lt;br&gt;import twill, glob&lt;br&gt;from StringIO import StringIO&lt;br&gt;from nose import with_setup&lt;br&gt;&lt;br&gt;def setup():&lt;br&gt;    outp = StringIO()&lt;br&gt;    twill.set_output(outp)&lt;br&gt;&lt;br&gt;def run_twill(twill_file):&lt;br&gt;    script = file(twill_file).read()&lt;br&gt;    twill.execute_string('reset_browser')&lt;br&gt;    twill.execute_string(script)&lt;br&gt;&lt;br&gt;@with_setup(setup)&lt;br&gt;def test_twill():&lt;br&gt;    for filename in glob.glob('*.twill'):&lt;br&gt;        yield run_twill, filename&lt;br&gt;### EOF&lt;br&gt;&lt;br&gt;Now you can put all of your website tests into .twill files in the current directory.  I suppose this could be made into a nose plugin...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stan</dc:creator><pubDate>Tue, 13 May 2008 09:59:39 -0000</pubDate></item></channel></rss>