Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Unlock achievements when running tests with nose, unittest, or Django!
Python
branch: master

Merge pull request #6 from bhardin/master

Fixing Typo in readme
latest commit 1d57f9e8e9
@exogen authored
Failed to load latest commit information.
noseachievements Use the provided Config's output stream if setOutputStream is never c…
tests Fixed EOFError when achievement data file is empty.
.gitignore Ignore build/ and dist/
AUTHORS Administrivia.
INSTALL Added pip installation command.
LICENSE Administrivia.
README.markdown
setup.py Re-added noseachievements.achievements to setup.py packages.

README.markdown

Unit Testing Achievements

by Brian Beck / @ua6oxa

trophy

  • Unlock achievements for running your test suite!
  • Works with nose, unittest, and Django
  • Tested with Python 2.6 and 3.1
  • Entry points for discovering more achievements

See the list of achievements on the homepage

Installation

From the source repository:

$ pip install git+git://github.com/exogen/nose-achievements.git

See INSTALL for more options.

Usage

nose

Run like so:

$ nosetests --with-achievements

Or enable it in setup.cfg:

[nosetests]
with-achievements=1

unittest

Use the included test runner:

from noseachievements.runner import AchievementsTestRunner

unittest.main(testRunner=AchievementsTestRunner)

Django 1.2+

Define TEST_RUNNER in settings.py:

TEST_RUNNER = 'noseachievements.djangotest.AchievementsDjangoTestSuiteRunner'

Achievements

See the list of achievements on the homepage.

More Ideas

Please share your achievement ideas on the wiki!

Something went wrong with that request. Please try again.