Test ALL your static pages in rails with one simple test

A great friend of mine (who also happens to be a great rails developer) once told me a great trick to increase your code coverage easily. You can just write a test to check if all your GET routes return a non-errored code.Indeed, the most important information to check about our static GET pages is to know if they are currently erroring or not. So a quick test to check if those pages are working or not is a great low-hanging fruit.
Test ALL your static pages in rails with one simple test #ruby #rubydeveloper #rubyonrails #test https://rubyonrails.ba/single/test-all-your-static-pages-in-rails-with-one-simple-test

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles