Favorites List: The most complete collection of resources for python testing frameworks

xUnit frameworks unit testing framework

  • frameworks
    • unittest - A unit testing library that comes with python, out of the box
    • unittest2 - Enhanced unit testing framework for Python 2.7 and later
    • pytest - Mature and powerful unit testing framework
    • plugincompat - Execution and compatibility plugin for pytest
    • nosetests - Make python testing a little easier
    • slash - Unit testing framework implemented in python
  • extensions
    • proboscis - Imitation TestNG extends the unittest module and the functionality of Nose
    • grail - A library that lets you write test cases step by step
    • testify - Unit testing framework, provides enhanced fixtures, use case cutting and running in parallel, testrunner highlighting and detailed log and report functions
    • trial - an extension of the unittest module, which provides a command-line testrunner tool and code coverage integration, similar to nose
    • subunit - provides the ability for unittest to execute use cases in another process and aggregate test data
    • testresources - provides a mechanism for managing test data across multiple use cases, compatible with unittest
    • testtools - unittest extension for Twisted and Bazaar
    • Sancho - Runs use cases, and provides reports for failed use cases, but only there
    • zope.testing - testrunner, provides good debugging capabilities, and integrates code coverage. Can be used with zope projects or non-zope projects
    • python - Tool to automatically or semi-automatically create test cases for legacy python systems
    • testlib - More powerful unittest, more assertions, support for module level setup/teardown, skip test, etc...
    • dutest - An object oriented interface to retrieve unittest test cases out of doctests. Hides initialization from doctests by allowing setUp and tearDown for each interactive example. Allows control over all the options provided by doctest. Specialized classes allow selective test discovery across a package hierarchy.
    • green - Green is a simple and colorful testrunner, very similar to nose
    • ddt - Data-Driven support for unittest
    • An extension of pytractor Selenium python bindings. The purpose is to make testing of angular projects easier

TDD ATDD BDD Test Framework

  • BDD
    • behave - BDD framework
    • lettuce - Yet another BDD framework
    • contexts - Descriptive testing tool for Python
    • mamba - Definitive testing tool for python
    • pyvows - Asynchronous behavior-driven development testing tool
    • pytest-bdd - BDD library for py.test runner
    • robotframework - The most famous acceptance test-driven development (ATDD) testing framework
    • radish-bdd - BDD framework, supports gherkin language
  • Assertions
    • pyshould - Should style assertions based on pyhamcrest
    • pyhamcrest - Hamcrest matchers for python
    • sure - A testing library implemented in python that provides powerful and flexible assertions
    • assertpy - Hugely simple python unit test assertion library with an elegant and fluent API. Supports Python 2 and 3.
  • Mocking
    • mock - Mocking and Patching library for python implementation
    • Ludibrio - Elegant framework for test doubles (mocks, stubs, spy, and dummies) implemented in python.
    • responses - Python testing tool library for mocking requests
    • doublex - Powerful test doubles framework
    • freezegun - Time travel via mocking datetime module
    • httpretty - Mock tool for HTTP requests
    • httmock - A mock tool for requests, supports Python 2.6+ and 3.2+.
    • pretenders - fake server for testing
    • mock-server - Simple mock sever, supports REST and XML-RPC API, and tornado-based management interface
    • VCR.py - Automatically mock HTTP interactions to make testing easier and faster
1
0


currentDiggType = 0;

« Previous: How to write test cases that cannot detect bugs
» Next: Do test students have to write hello world for a lifetime?
    </div>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325723967&siteId=291194637