Problem Description:
Currently, almost all tests are unit tests, though they worked well and provided good coverage, there could still be corners be omitted and leading to failure during QE. We should provide better integration tests to cover the whole population process.
Solution
The integration tests should be similar to what we have done to test pub workers:
- should be able to test the whole ubi population process with different input sets.
- tests shouldn't rely on external resources, such as a real server, requests, pa_tool. Instead, should mock them to exclude the influence from them.
Acceptance criteria:
- Setup the mocked test environment
- Add test cases to run the complete ubi population process with different input sets.
Problem Description:
Currently, almost all tests are unit tests, though they worked well and provided good coverage, there could still be corners be omitted and leading to failure during QE. We should provide better integration tests to cover the whole population process.
Solution
The integration tests should be similar to what we have done to test pub workers:
Acceptance criteria: