Default test suites
Use CI Management to define the default test suites for test frameworks. These parameters are passed to builds that you can run in TeamCity. You can define test suites for gUnit Server Tests or gUnit Smoke Tests.
Access to this application is managed by Guidewire Hub. For details, see Access Cloud Platform apps and services.
Access CI Management
To access CI Management from Guidewire Home:
-
Select a star system.
-
From Apps
, select CI Management or select it from your pinned apps.
Configure a default test suite
To define the default test suites:
-
Go to the testing framework for which you want to set the parameters.
You can define test suites for gUnit Server Tests or gUnit Smoke Tests.
-
Select + Add.
-
In Application, select InsuranceSuite application for which you want to run the test.
-
Enter a suite name.
Note:The name must be fully-qualified and must include the Gosu class name and package where the suite resides. For example,
gw.suites.PCExampleSmokeSuite
. -
In Branch inclusion rules, add a list of branches or branch patterns for which the specified suite should be included in the test builds.
Add each rule in a new line. You can use the
*
wildcard. -
In Branch exclusion rules, add a list of branches or branch patterns for which the specified suite should be excluded from running in the test builds.
Add each rule in a new line. You can use the
*
wildcard. -
Select Add.
For Branch inclusion rules and Branch exclusion rules, you can use the *
wildcard as zero or more characters. For example:
*
as all branches.release/*
as branches that are starting withrelease/
.*-test
as branches that are ending with-test
.
Verify in TeamCity
You can now go to TeamCity and verify the setup:
-
Go to TeamCity → {project} → {application} → {test_framework}.
-
Go to the modified build and select Run.
TeamCity will run the build.
-
In the Build Log tab, check the progression of the TeamCity build.
In the Select test suites step, you can see which suites are being run and for which branches.
It might take a few minutes for the changes to be applied to the build.
Run compile for no matching suites
By default, the compilation of an InsuranceSuite application is always executed. This rule applies even when no test suites match a branch on which the tests are executed. To change compilation settings:
-
Go to the testing framework for which you want to change the compilation setting.
-
From Run compile for no matching suites, select the checkbox next to the InsuranceSuite application that you want to compile without matching test suites.
To disable compilation when no test suites are matching, clear the checkbox next to the InsuranceSuite application.
Verify in TeamCity
You can now go to TeamCity and verify the setup:
-
Go to TeamCity → {project} → {application} → {test_framework}.
-
Go to the modified build and select the ellipsis next to the Run button.
-
Open the Parameters tab.
-
Check if
run_compile_on_empty_suite_list
is selected.
Edit a default test suite
To edit a default test suite:
-
In the table, find the test suite that you want to edit.
-
Select Edit
.
-
Change Branch inclusion rules and Branch exclusion rules as needed.
-
Select Save.
Delete a default test suite
To delete a default test suite:
-
In the table, find the test suite that you want to delete.
-
Select Delete
.
-
Select Delete.