pyfix 0.2.3

A framework for writing automated software tests

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
The Apache License 2.0 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Alexander Metzner
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Programming \ Quality Assurance and Testing
pyfix is a Python module designed especially for writing test functions.

Install

 pip install pyfix

Usage

Here's an important example:

from pyfix import test, main
from pyassert import assert_that

@test
def ensure_that_two_plus_two_equals_four ():
 assert_that(2 + 2).equals(4)

@test
def ensure_that_two_plus_three_equals_five ():
 assert_that(2 + 3).equals(5)

if __name__ == "__main__":
 main()

If you execute this file you should see the following output:

pyfix version 0.1.1.

Running 2 tests.
--------------------------------------------------------------------------------
Ensure that two plus three equals five: passed [0 ms]
Ensure that two plus two equals four: passed [0 ms]
--------------------------------------------------------------------------------
TEST RESULTS SUMMARY
 2 tests executed
 0 tests failed
ALL TESTS PASSED

Last updated on September 19th, 2012

requirements

#test functions #software tests #Python tests #Python #test #functions #tests

Add your review!

SUBMIT