ParamUnittest

Screenshot Software:
ParamUnittest
Szczegóły programowe:
Wersja: 0.2
Filmu: 20 Feb 15
Wywoływacz: Enrico Franchi
Licencja: Wolny
Popularność: 56

Rating: 2.3/5 (Total Votes: 3)

ParamUnittest jest narzędziem Python zaprojektowany, aby umożliwić tworzenie testów jednostkowych parametryzowaną zdolnych do pracy z oficjalnego pakietu unittest Pythona.
Przykłady:
Import unittest
Import paramunittest
@ Paramunittest.parametrized (
& Nbsp; ('1' "2"),
& Nbsp; # (4, 3),
& Nbsp; ("2", "3"),
& Nbsp; (("4"), {'b': '5'}),
& Nbsp; (() {'': 5, 'b': 6}),
& Nbsp; {'': 5, 'b': 6},
)
Klasa TestFoo (paramunittest.ParametrizedTestCase):
& Nbsp; def setParameters (self, a, b):
& Nbsp; self.a =
& Nbsp; self.b = b
& Nbsp; def testLess (self):
& Nbsp; self.assertLess (self.a, self.b)
@ Paramunittest.parametrized (
& Nbsp; ('1' "2"),
& Nbsp; # (4, 3),
& Nbsp; ("2", "3"),
& Nbsp; (("4"), {'b': '5'}),
& Nbsp; (() {'': 5, 'b': 6}),
& Nbsp; {'': 5, 'b': 6},
)
Klasa TestBar (unittest.TestCase):
& Nbsp; def setParameters (self, a, b):
& Nbsp; self.a =
& Nbsp; self.b = b
& Nbsp; def testLess (self):
& Nbsp; self.assertLess (self.a, self.b)

Wymagania :

  • Python

Podobne oprogramowanie

nose-regression
nose-regression

11 May 15

pyfix
pyfix

20 Feb 15

Apache AntUnit
Apache AntUnit

11 May 15

searchtester
searchtester

12 May 15

Komentarze do ParamUnittest

Komentarze nie znaleziono
Dodaj komentarz
Włącz zdjęć!