The end-to-end test profile
Even though it has the word test in its name, the end-to-end test, or, E2E test for short, is quite different from unit tests. The E2E test has nothing to do with those unit tests code or the @ActiveProfiles annotation. You can think of those E2E tests as mini robots. They can open browsers with the help of tools like Nightwatch, and test the application's features directly from the browser as an actual application user.
In Chapter 8, Creating the Application Scaffold - Taking off Like a Rocket, we combined the build steps of the frontend into Maven's build process. In this process, before the E2E test starts, we start the application by running mvn spring-boot:start, and then we execute the E2E test cases. Once ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access