View on GitHub

tp

Running Tests

There are two ways to run tests.

1. Using IntelliJ JUnit test runner

2. Using Gradle

Refer to this Gradle Tutorial from se-edu/guides to learn more about using Gradle.

Types of Tests

There are three types of tests.

  1. Unit tests which targets the lowest level methods or classes. e.g. SortByCategoryTest
  2. Integration tests are tests that checks for the integration of code units.   This is done on the assumption that these units are working.
  3. Hybrids of unit and integration tests. These tests are used to check multiple code units and how these code units are integrated with each other.