ParamUnittest

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

Rating: 5.0/5 (Total Votes: 1)

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

CATSRunner
CATSRunner

3 Jun 15

testkit
testkit

20 Feb 15

Bazinga
Bazinga

11 May 15

Ahven
Ahven

15 Apr 15

Komentarze do ParamUnittest

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