Test case for snapshotCasesWithContext.
Optional
If true, allows errors to be thrown and snapshotted. Otherwise thrown errors will fail the test.
Test case for snapshotCasesWithContext.