Creating a Unit Test project
The test project would ideally be a new project (and model) inside the package we are testing. Each package should have one test project, and, if writing user interface tests, we should have one form adapters also.
Getting ready
Open the project that we intend to write tests for.
How to do it...
To create the unit test project, follow these steps:
- Select
Dynamics 365 for Operations
|Create model
from the top menu and complete theCreate model
form as follows:
Field | Value |
Model name | ConWHSVehicleManagementTest |
Model publisher | Contoso IT |
Layer | VAR |
Model description | Test cases for the ConWHSVehicleManagement package |
Model display name | ConWHSVehicleManagementTest |
Note
The suffix is important and should always be Test
.
- Click on
Next
. - Select
Create new package
and click onNext
. - Select
ConWHSVehicleManagement
,ConWHSVehicleManagementFormAdaptor
,ApplicationFoundation
, andTestEssentials
from thePackages [Models]
list and click onNext
.
Note
Model packages may be required, depending on the...