pyfix

Software Screenshot:
pyfix
Software Details:
Version: 0.2.3
Upload Date: 20 Feb 15
Developer: Alexander Metzner
Distribution Type: Freeware
Downloads: 8

Rating: nan/5 (Total Votes: 0)

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

Requirements:

  • Python

Similar Software

HOL-TestGen
HOL-TestGen

20 Feb 15

nose-html-output
nose-html-output

20 Feb 15

nose-exclude
nose-exclude

20 Feb 15

nose-cov
nose-cov

20 Feb 15

Comments to pyfix

Comments not found
Add Comment
Turn on images!