← Back to Upcase

View testing do or do not?

(Bastian Platz) #1

Should you test your view code? What if it gets complex with a lot of JS? What if it’s basic?

(Ben Orenstein) #2

Is this something that needs to keep working? If so, test it.

Is it something that you want to be clean and keep working? If so, write the test first.

Personally, I do a little bit of isolated view testing, and also test them through integration tests sometimes.