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-performance
nose-performance

20 Feb 15

robotframework
robotframework

17 Feb 15

LAVA Server
LAVA Server

20 Feb 15

PyHamcrest
PyHamcrest

11 May 15

Komentarze do ParamUnittest

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