Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests related to CDMS-144 AC1 to AC3. #47

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

limsim
Copy link
Contributor

@limsim limsim commented Jan 7, 2025

No description provided.

Lim Sim and others added 11 commits January 7, 2025 18:28
…efactoring of test fixtures (#40)

* CDMS-200 switches country ched searching to use country of origin

CDMS-200 Refactored no match tests to re-use code

Refactoring Test Fixtures

Switched Analytics MaxVersion tests to use new fixtures

Some small refactoring to remove some generics

CDMS-200 adds additional decision tests, moves alvs decision check analytics into context so it appears in audit entry

Refactoring fixtures

Refactoring fixtures

* Finished refactoring of BaseTest class :fingers-crossed
* CDMS-200 use an enum for alvs DecisionStatus

* CDMS-200 added tests for missing/incorrect decision version numbers

* CDMS-200 changes decision status to an enum

* Fix tests

* CDMS-200 creating a way to use the new fixtures with test generator datasets

* Integration tests - ScenarioDatasetBaseTest Caches datasets between tests

* Updated tests to use the bus, and avoid using a thread sleep in the tests

* ScenarioGeneratorBaseTest only runs each scenario load once

* Disables parrallel bus processing for integration tests. Switching integration tests to use new test base class

* CDMS-200 adds additional context to failing tests

* added out extra output to failing test

* updated tests to use the scenario name rather than test name

* Updates all analytics tests to use ScenarioDatasetBaseTest

---------

Co-authored-by: Thomas Anderson <[email protected]>
Co-authored-by: Thomas Anderson <[email protected]>
Copy link

github-actions bot commented Jan 8, 2025

Code Coverage

Package Line Rate Branch Rate Health
Btms.Types.Alvs 84% 67%
Btms.Consumers 88% 76%
Btms.Azure 43% 100%
Btms.Common 82% 50%
Btms.Backend.Data 65% 61%
Btms.Types.Gvms 67% 100%
Btms.Types.Ipaffs.Mapping 75% 44%
Btms.Model 89% 93%
Btms.SyncJob 73% 62%
Btms.Types.Alvs.Mapping.V1.Tests 0% 0%
Btms.SensitiveData 79% 81%
Btms.Types.Gvms.Mapping 38% 26%
Btms.Types.Alvs.Mapping 76% 0%
Btms.Business 74% 56%
Btms.Metrics 88% 0%
Btms.Types.Ipaffs 95% 61%
Btms.BlobService 39% 31%
TestDataGenerator 80% 75%
Btms.Analytics 75% 67%
Btms.Emf 11% 0%
Btms.Backend 65% 50%
TestGenerator.IntegrationTesting.Backend 85% 66%
Summary 76% (8327 / 10900) 56% (754 / 1336)

limsim and others added 11 commits January 10, 2025 15:06
…est' into feature/CDMS-144-add-automated-test
…efactoring of test fixtures (#40)

* CDMS-200 switches country ched searching to use country of origin

CDMS-200 Refactored no match tests to re-use code

Refactoring Test Fixtures

Switched Analytics MaxVersion tests to use new fixtures

Some small refactoring to remove some generics

CDMS-200 adds additional decision tests, moves alvs decision check analytics into context so it appears in audit entry

Refactoring fixtures

Refactoring fixtures

* Finished refactoring of BaseTest class :fingers-crossed
* CDMS-200 use an enum for alvs DecisionStatus

* CDMS-200 added tests for missing/incorrect decision version numbers

* CDMS-200 changes decision status to an enum

* Fix tests

* CDMS-200 creating a way to use the new fixtures with test generator datasets

* Integration tests - ScenarioDatasetBaseTest Caches datasets between tests

* Updated tests to use the bus, and avoid using a thread sleep in the tests

* ScenarioGeneratorBaseTest only runs each scenario load once

* Disables parrallel bus processing for integration tests. Switching integration tests to use new test base class

* CDMS-200 adds additional context to failing tests

* added out extra output to failing test

* updated tests to use the scenario name rather than test name

* Updates all analytics tests to use ScenarioDatasetBaseTest

---------

Co-authored-by: Thomas Anderson <[email protected]>
…est' into feature/CDMS-144-add-automated-test

# Conflicts:
#	Btms.Backend.IntegrationTests/DecisionTests/SingleChedH01Tests.cs
#	Btms.Backend.IntegrationTests/DecisionTests/SingleChedH02Tests.cs
#	TestDataGenerator/TestDataGenerator.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants