I'm playing a bit with testify and planning how to write my tests with it. While the main difference between Assert and Require is very clear:
Assert - return false if failed but will continue the execution. Require - will terminate the run if failed.
I'm looking for the correct way or "best practice" of writing tests with them, in which scenario should I use Assert and when should I use Require?
Aucun commentaire:
Enregistrer un commentaire