Sobes.tech
Middle

Mida teeb käsk mvn clean test?

sobes.tech AI

Vastus AI-lt

The mvn clean test command performs two main tasks:

  1. clean — deletes all previously generated build files (e.g., the target folder), to ensure a clean environment for the new build.
  2. test — compiles the project and runs all tests defined in the project (usually unit tests).

This way, this command helps verify that the code compiles and all tests pass, starting from a clean project state.