pyfix

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

Rating: 3.0/5 (Total Votes: 1)

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

ContiPerf
ContiPerf

20 Feb 15

expecter
expecter

20 Feb 15

DTest
DTest

11 May 15

Testify
Testify

20 Feb 15

Comments to pyfix

Comments not found
Add Comment
Turn on images!