Tag Archives: frameworks

nose introduction

This post has several examples, and covers fixtures, test discovery, asserts, running options, and running unittests and doctests.

Nose’s tagline is “nose extends unittest to make testing easier”.
It’s is a fairly well known python unit test framework, and can run doctests, unittests, and “no boilerplate” tests.

Continue reading

pytest introduction

I think of pytest as the run-anything, no boilerplate, no required api, use-this-unless-you-have-a-reason-not-to test framework.
This is really where testing gets fun.
As with previous intro’s on this site, I’ll run through an overview, then a simple example, then throw pytest at my markdown.py project. I’ll also cover fixtures, test discovery, and running unittests with pytest.

Continue reading

Poll Results: test frameworks

Well, the poll I put up a couple weeks ago has 125 votes last I checked.

Results

  1. nose, 42 votes
  2. pytest, 32 votes
  3. unittest, 29 votes
  4. doctest, 18 votes
  5. other, 4 votes

The other votes were:

  • twisted trial (also mentioned in a comment)
  • pyVows
  • attest
  • zope.testing

Commentary

This is mostly what I expected.

So I think I’m on the Continue reading