Start With High-Level Tests — Tom Dalling

There are different kinds of tests, and each kind can be placed on a continuum from high-level to low-level. High-level tests cover a larger portion of the codebase, and tend to exercise application features in a way that is closer to how a real user would. Low level tests cover small units of the codebase, often in isolation, and tend to exercise programmatic interfaces of internal implementation details.In the context of a Rails application, the kinds of tests can be roughly ordered:Highest: System/feature/end-to-end testsRequest/controller testsTests for commands, interactors, background jobs, or other business logicTests for individual models, views, or other small componentsLowest: Isolated unit tests for individual classes, often POROs, where all dependencies have been mocked out.
Start With High-Level Tests — Tom Dalling #ruby #rubydeveloper #rubyonrails #tests https://rubyonrails.ba/single/start-with-high-level-tests-tom-dalling

Nezir Zahirovic

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

related articles