Community Page
- www.jessenoller.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- If you change range(2) to range(200) it does not exit correctly. How would you solve this?
- Thanks, it looks pretty cool at first glance - it's GPL 3 so I probably won't touch it, but I'll pass it on to other people
- I know it has been a while since this was posted but I thought I'd follow up and say that thanks to this example and my subsequent discovery (that I posted above) I was able to put together the...
- Hi Jessie, Very nice write-up about Yaml, which I'm using. Based on your article in Python Magazine, I started using the syntax you also show above, creating Python objects from the...
- Introspection is the word you're looking for, not self-awareness.
Jump to original thread »
So, I am pondering going all-out with Nose, and I am wondering what plugins people find the most useful for it, and also how people are using it.
I see two aspects of nose/any test execution mechanism: Unit testing “native” (i.e: python code) and running tests that are more functional in nature (i.e: not testing python, [...] ... Continue reading »
I see two aspects of nose/any test execution mechanism: Unit testing “native” (i.e: python code) and running tests that are more functional in nature (i.e: not testing python, [...] ... Continue reading »
1 year ago
I also use nose to drive twill-based website unit tests:
(not sure how well this will paste)
# test.py
import twill, glob
from StringIO import StringIO
from nose import with_setup
def setup():
outp = StringIO()
twill.set_output(outp)
def run_twill(twill_file):
script = file(twill_file).read()
twill.execute_string('reset_browser')
twill.execute_string(script)
@with_setup(setup)
def test_twill():
for filename in glob.glob('*.twill'):
yield run_twill, filename
### EOF
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...
1 year ago
1 year ago
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.
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.
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.
1 year ago
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.
I also use NoseGAE for testing Google App Engine webapps in-process: http://code.google.com/p/nose-gae/
btw, the official (unofficial?) list of all nose plugins is here: http://nose-plugins.jottit.com/
1 year ago
1 year ago
http://www.assembla.com/wiki/show/nose_notify
1 year ago