[MNG-7002] Added a test scenario for including child modules when using the --pl switch.

This commit is contained in:
Martin Kanters 2020-10-23 10:41:31 +02:00
parent 42af8ba5a2
commit afd17a3979
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ public class DefaultGraphBuilderTest
scenario( "Selected project" )
.selectedProjects( MODULE_B )
.expectResult( MODULE_B ),
scenario( "Selected project (including child modules)" )
.selectedProjects( MODULE_C )
.expectResult( MODULE_C, MODULE_C_1, MODULE_C_2 ),
scenario( "Excluded project" )
.excludedProjects( MODULE_B )
.expectResult( PARENT_MODULE, MODULE_C, MODULE_C_1, MODULE_A, MODULE_C_2, INDEPENDENT_MODULE ),