While reading this article TestSetup Annotation, I found the following explanation of how TestSetup
annotation works:
If a test method changes those records, such as record field updates or record deletions, those changes are rolled back after each test method finishes execution. The next executing test method gets access to the original unmodified state of those records.
Now it makes me think of how it works with Parallel Test Execution
. Following the explanation from the help article, it looks like unit tests in a test class should run sequentially to make sure that
...executing test method gets access to the original unmodified state of those records.
Is it true, or am I missing something?