Giter Club home page Giter Club logo

pytest's Introduction

Documentation: http://pytest.org/latest/

Changelog: http://pytest.org/latest/changelog.html

Issues: https://bitbucket.org/hpk42/pytest/issues?status=open

The py.test testing tool makes it easy to write small tests, yet scales to support complex functional testing. It provides

  • auto-discovery of test modules and functions,
  • detailed info on failing assert statements (no need to remember self.assert* names)
  • modular fixtures for managing small or parametrized long-lived test resources.
  • multi-paradigm support: you can use py.test to run test suites based on unittest (or trial), nose
  • single-source compatibility to Python2.4 all the way up to Python3.3, PyPy-1.9 and Jython-2.5.1.
  • many external plugins.
https://secure.travis-ci.org/hpk42/pytest.png

This Fork:

https://secure.travis-ci.org/burrowsa/pytest.png?branch=master

A simple example for a test:

# content of test_module.py
def test_function():
    i = 4
    assert i == 3

which can be run with py.test test_module.py. See getting-started for more examples.

For much more info, including PDF docs, see

http://pytest.org

and report bugs at:

http://bitbucket.org/hpk42/pytest/issues/

and checkout repos at:

http://github.com/hpk42/pytest/ (mirror) http://bitbucket.org/hpk42/pytest/

Copyright Holger Krekel and others, 2004-2013 Licensed under the MIT license.

pytest's People

Contributors

alfredodeza avatar antocuni avatar avdn avatar benjaminp avatar bubenkoff avatar burrowsa avatar embe avatar embray avatar fijal avatar flub avatar hpk42 avatar jaapz avatar jaraco avatar katarzynaanna avatar magopian avatar mcmtroffaes avatar mineo avatar nicoddemus avatar okken avatar pedronis avatar pfctdayelise avatar ronnypfannschmidt avatar sashahart avatar schmir avatar singletoned avatar t2y avatar tkf avatar w00t0r avatar westurner avatar witsch avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.