0
Ülevaatamisel

While Unit test run why need to connect actual resources

bhavesh panchal 1 aasta tagasi uuendaja Ashley Lewis 1 aasta tagasi 1

We have identified that if we are not using actual values for DB and other resources for workflows it fails Unit tests.

It causes issue while unit test run when unit test container connects to actual DB and other resources, there might be chances of Data manipulation at Unit test level.

Ülevaatamisel

Have you considered using mocks? The database will not be called if the database activity is replaced with a mock in the test. When the test is run the mocked activity will always output the provided data and never actually call the database.