Server-side tests

Server-side integration tests and unit tests are present in the src/test/java folder.

These can be run directly from the IDE by choosing a package or individual test and running it, or via the command line by running the Gradle test and integrationTest tasks. Let's run it using the command line. In a new Terminal, navigate to the application source folder and execute the following command. It should finish with a success message, as follows:

> ./gradlew test integrationTest
...
BUILD SUCCESSFUL in 36s
10 actionable tasks: 3 executed, 7 up-to-date

We'll take a look at client-side tests in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.191.22