• Malware Search
  • Python
  • Security
  • Twitter @decalage2
  • GitHub

Languages

  • English English
  • French French

Navigation

  • Contact
  • Contenu
  • Sécurité
    • Forensics
    • Malware Analysis
    • VBA Macros
  • Python
  • Ruby
  • Windows
  • Weaponized File Formats
  • ExeFilter
  • Dernières contributions

Primary links

  • Malware Search
  • Python
  • Security
  • Twitter @decalage2
  • GitHub

Contenu populaire

Aujourd'hui :

  • Python tips - How to easily convert a list to a string for display
  • HTML.py - a Python module to easily generate HTML tables and lists
  • olefile - a Python module to read/write MS OLE2 files

Depuis toujours :

  • Python tips - How to easily convert a list to a string for display
  • olefile - a Python module to read/write MS OLE2 files
  • HTML.py - a Python module to easily generate HTML tables and lists
Accueil › Contenu

Unit tests in Python

Here are several solutions to run unit tests in Python.

Python standard library:
- doctest: http://docs.python.org/lib/module-doctest.html
- unittest/PyUnit: http://pyunit.sourceforge.net/pyunit.html

Third-party:
- TestOOB: http://testoob.sourceforge.net
- py.test: http://codespeak.net/py/dist/test.html
- nose: http://www.somethingaboutorange.com/mrl/projects/nose/
- nose plugins repository: http://nose-plugins.jottit.com/

Articles comparing unittest, doctest and py.test:
http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unit...
http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-2-doct...
http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-3-pyte...

Presentation about nose: http://us.pycon.org/common/2008/talkdata/PyCon2008/079/nose_pycon08.pdf

  • Python