Overview

Use

See example.py for an example of utilization. In order to use it, you should:

  • Set metaclass of your testcases.
  • Decorate the test you want to execute multiple time.

Example

$ python example.py
F..F
======================================================================
FAIL: test_color_no_default_green (__main__.test_color_with_default)
If the test if not callable without fixtures, add _ before it's name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/lothiraldan/Labo/test_partial/poc.py", line 16, in wrapped
    return func(self, *(args + parameters), **kw)
  File "example.py", line 12, in _test_color_no_default
    self.assertEquals(color, "white")
AssertionError: 'green' != 'white'

======================================================================
FAIL: test_color_with_default_green (__main__.test_color_with_default)
This tests is callable (color has a default value)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/lothiraldan/Labo/test_partial/poc.py", line 16, in wrapped
    return func(self, *(args + parameters), **kw)
  File "example.py", line 18, in test_color_with_default
    self.assertEquals(color, "white")
AssertionError: 'green' != 'white'

----------------------------------------------------------------------
Ran 4 tests in 0.001s

FAILED (failures=2)