Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Sinon.js: isolation framework per test in javascript
Sinon.js: isolation framework per test in javascript
Inviato da netarrow 23/10/2013 21:45
commenti (1)

Aggiungi un commento

Inserisci il tuo commento qui
Esegui il login oppure registrati per inviare commenti
  • Sembra buono, ma la documentazione e' chiaramente scritta dagli sviluppatori che hanno chiaramente una conoscenza avanzata della libreria. Cioe': "A test spy is a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls. A test spy can be an anonymous function or it can wrap an existing function.". Non ho ancora capito. Leggo di piu': "Test spies are useful to test both callbacks and how certain functions/methods are used throughout the system under test. ". Eh? Cioe', alla fine con un po' di pazienza si riesce a capire, ma bisogna prestare buona attenzione (e leggere tutto tre volte).