What would be the best way to test a validation request? For example. If a class has 4 attributes, all required, and one of them with a minimum of letters, and another being of type email.
It would be wise to test all possibilities, such as a test for filled fields or not, or if the attribute has the number of letters or just make sure that an error message is displayed, without worrying about the attribute itself.
In the API I'm taking care of, I did a test for every possible situation, but some tests will get really big
Aucun commentaire:
Enregistrer un commentaire