Running the application

We were moving too fast. We haven't tested the code and made sure it works before committing it. This is a bad practice and should be avoided. No matter how eagerly we want to commit the code, we must make sure it compiles and passes tests in the local environment first.

Now, let's run the mvn install command to see how it works. Unfortunately, we have a build failure. Our only test, which was generated automatically by Spring Initializr, has failed, as you can see from the following output in the console:

...[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.499 s <<< FAILURE! - in com.taskagile.TaskAgileApplicationTests[ERROR] contextLoads(com.taskagile.TaskAgileApplicationTests) Time elapsed: ...

Get Building Applications with Spring 5 and Vue.js 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.