xrm-datamigration icon indicating copy to clipboard operation
xrm-datamigration copied to clipboard

Test Documentation

Open tdashworth opened this issue 5 years ago • 1 comments

Today I tried to run the full test suite locally before submitting a PR. This included the integrations tests.

Capgemini.Xrm.DataMigration.Core.IntegrationTests worked perfectly after supplying some connection strings in the app.config.

Capgemini.Xrm.DataMigration.Tests.Integration did not work, again, after supplying connection strings in the app.config.

I think we need to:

  1. add the to CONTRIBUTING.md with steps on configuring the integration tests - even if it's simple.
  2. ensure to tests can be run on any environment without any manual pre-configuration.

tdashworth avatar Jan 30 '21 19:01 tdashworth

I have resolved a few issues but there are 9 remaining tests failing. They can be categorised as follows:

Missing entities:

  • adx_webtemplate (Portal)
  • new_mydata (Custom)
  • cap_multiselect (Custom)

Missing files:

  • ImportSchemas\CustomSolutionSchema\ExtractedData
  • ImportSchemas\ContactSchema\ContactWithOwnerExportConfig.json
  • ImportSchemas\ContactSchema\ContactWithOwnerImportConfig.json
  • ImportSchemas\ContactSchema\ContactWithOwnerImportConfig.json

Other:

  • serviceendpoint.saskey ("Retrieve can only return columns that are valid for read")
  • "Assert.IsTrue failed."

tdashworth avatar Jan 30 '21 19:01 tdashworth