JAVA-60 Mvn Clean Install Profile Issue - Github 8189

- Updated README.md as per the latest profile based segregation that we follow in this repository
This commit is contained in:
Dhawal Kapil 2020-03-21 17:03:32 +05:30
parent ad94b4d4b2
commit 476270ce54
1 changed files with 10 additions and 10 deletions

View File

@ -33,21 +33,21 @@ Next, they are segregated further on the basis of tests that we want to execute.
Therefore, we have a total of 6 profiles:
| Profile | Includes | Type of test enabled |
| ----------------------- | --------------------------- | -------------------- |
| default-first | First set of projects | *UnitTest |
| integration-lite-first | First set of projects | *IntegrationTest |
| default-second | Second set of projects | *UnitTest |
| integration-lite-second | Second set of projects | *IntegrationTest |
| default-heavy | Heavy/long running projects | *UnitTest |
| integration-heavy | Heavy/long running projects | *IntegrationTest |
| Profile | Includes | Type of test enabled |
| ----------------------- | --------------------------- | ---------------------------- |
| default-first | First set of projects | *UnitTest, SpringContextTest |
| integration-lite-first | First set of projects | *IntegrationTest |
| default-second | Second set of projects | *UnitTest, SpringContextTest |
| integration-lite-second | Second set of projects | *IntegrationTest |
| default-heavy | Heavy/long running projects | *UnitTest, SpringContextTest |
| integration-heavy | Heavy/long running projects | *IntegrationTest |
Building the project
====================
Though it should not be needed often to build the entire repository at once because we are usually concerned with a specific module.
But if we want to, we can invoke the below command from the root of the repository if we want to build the entire repository with only Unit Tests enabled:
But if we want to, we can invoke the below command from the root of the repository if we want to build the entire repository with only Unit Tests and `SpringContextTest` enabled:
`mvn clean install -Pdefault-first,default-second,default-heavy`
@ -74,7 +74,7 @@ When you're working with an individual module, there's no need to import all of
Running Tests
=============
The command `mvn clean install` from within a module will run the unit tests in that module.
The command `mvn clean install` from within a module will run the unit tests in that module and additionally `SpringContextTest`.
To run the integration tests, use the command:
`mvn clean install -Pintegration-lite-first` or