-
Notifications
You must be signed in to change notification settings - Fork 1
Tests Integration Testing
You test the entire thing, because you have dependencies on external factors
- Internet working
- Database functionality
These tests run slowly because they are relying on so much code.
Like the end to end side, it's thorough, but it doesn't entirely test the system like End to End does. It tests a large part of the app, or at least specifically how two things in the app link together
It has some dependencies (ie, the database)
These tests run slower than End to End, but faster than Unit testing.
- Allows you to test a mock MVC (you pretend to make requests, but there's no internet involved).
See demo code from songr application for testing info - see "SongrApplicationTests.java" --> https://github.com/codefellows/seattle-java-401d6/tree/master/class-13/songr
Demo uses this resource: https://www.baeldung.com/integration-testing-in-spring
A test that is very small
- a single method
They are not dependent on external systems to work
These tests run fast.