Skip to content

Tests Integration Testing

Sharina Stubbs edited this page Jan 24, 2020 · 4 revisions

End to End 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.

Integration Testing

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.

Spring sets up the integration testing

  • Allows you to test a mock MVC (you pretend to make requests, but there's no internet involved).

Spring Integration Testing demo:

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

Unit Testing

A test that is very small

  • a single method

They are not dependent on external systems to work

These tests run fast.

Resources:

https://accessibilityinsights.io/

class demo code from Jan 23, 2020, Java 401d9 Java

Clone this wiki locally