完 Cleaning up after your integration test?

by Jun 21, 2023

完 Cleaning up after your integration test?

Stop doing that!

When you do an integration test, you often need to create a record in the database.

These tests are often wrapped in a try..finally statement, where the just created record is being cleaned up in the finally section.

Don’t clean-up after te test.

Do clean-up before you do the test!

Benefits:

儭 Really start with a clean state, even when you are debugging your test and stop half-way.

儭 Get rid of the try…finally statement around your test.

儭 When the test fails, you can still review the created record for problems. It’s still there!

#

Subscribe to
The Daily Friction

A daily newsletter on automation and eliminating friction

Related Content

Scrum conceals bad teams.

Scrum conceals bad teams. Far too often, we confuse Scrum with a magic wand that transforms any team into a high-performing 'dream team'. It's tempting to believe that the sprint system, with its regular completion and initiation of tasks, gives us an agile and...

read more

Process Automations in Microsoft Loop!

Process Automations in Microsoft Loop! Now you can create Power Automate-backed rules to streamline repetitive tasks in your Loop table. See https://insider.microsoft365.com/en-us/blog/streamline-your-workflow-with-automation-in-microsoft-loop Loop is slowly...

read more

You don’t control the truth in Production!

You don't control the truth in Production! Now a days multiple teams/projects are working on the same Dataverse production environment. So thinking you can manage the complete production truth in your ALM pipeline is strange. Not every environment is equal to...

read more
Share This