Merge pull request #387 from infosupport/MNG-7002-include-unit-test-for-pl-including-children

[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 15:33:07 +02:00 committed by GitHub
commit 6034102535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ),