pyfix

Software screenshot:
pyfix
Dettagli del software:
Versione: 0.2.3
Data di caricamento: 20 Feb 15
Sviluppatore: Alexander Metzner
Licenza: Libero
Popolarità: 8

Rating: nan/5 (Total Votes: 0)

pyfix è un modulo Python progettato appositamente per la scrittura di funzioni di test.
Installa
& Nbsp; pip install pyfix
Utilizzo
Ecco un esempio importante:
dal test di importazione pyfix, principale
da pyassert import assert_that
test
def ensure_that_two_plus_two_equals_four ():
& Nbsp; assert_that (2 + 2) .equals (4)
test
def ensure_that_two_plus_three_equals_five ():
& Nbsp; assert_that (2 + 3) .equals (5)
if __name__ == "__main__":
& Nbsp; main ()
Se si esegue questo file si dovrebbe vedere il seguente output:
pyfix versione 0.1.1.
Esecuzione 2 prove.
-------------------------------------------------- ------------------------------
Assicurarsi che due più tre fa cinque: passati [0 ms]
Assicurarsi che due più due fa quattro: passati [0 ms]
-------------------------------------------------- ------------------------------
RISULTATI TEST
& Nbsp; 2 test eseguiti
& Nbsp; 0 test fallito
TUTTI test passati

Requisiti :

  • Python

Programmi simili

Sahi
Sahi

14 Apr 15

pycdep
pycdep

11 May 15

testkit
testkit

20 Feb 15

lava-core
lava-core

14 Apr 15

Commenti a pyfix

I commenti non trovato
Aggiungi commento
Accendere le immagini!