dimanche 18 décembre 2016

Rails - Quick check if productions views are working properly

I have tests for my models, if the validations works, if creation and deletion works. I have several test cases for each model but still, sometimes my customers experience a 500 error because of very special entities or maybe I forgot to limit the length of a string to 255 or the production database behaves differently from my test database (most common).

Is a "good practice" to write a rake task or similiar that runs over my production data and checks if every view returns 200?

Or should I code more carefully and add more test cases instead of asking weird questions on SO?

Aucun commentaire:

Enregistrer un commentaire