test slice

A Spring Boot test that starts only one layer of the application, such as the web layer with @WebMvcTest, to stay fast.

In more detail

A web slice loads controllers, advice, filters and validation but not services or databases, which are replaced by test doubles. Choose the smallest test that proves the behaviour, and add a full context test when wiring is the risk.

Related terms

Taught in

References