pyfix 0.2.3

A framework for writing automated software tests
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, 8:49 GMT
price:
FREE!
developed by:
Alexander Metzner
homepage:
github.com
license type:
The Apache License 2.0 
category:
ROOT \ Programming \ Quality Assurance and Testing

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT