+ Start a Discussion
GC_00001GC_00001 

Deployment Unit Tests cause autonumber on case to increment

Having just been doing a number of unit tests whilst deploying various things, it would appear that the autonumber of cases has incrementd in line with the number of dummy cases that would have been temporarily inserted during the tests.

This means that we now have big gaps in the numbers in our production environment..

Can anyone please confirm whether this is what is probably happening and if so is there anyway to stop it?

Thanks,
Best Answer chosen by GC_00001
Arthur LockremArthur Lockrem
A fix for this has recently been implemented.

You can enable this option from Setup by clicking Develop > Apex Test Execution > Options..., selecting Independent Auto-Number Sequence, and clicking OK. 

All Answers

Arthur LockremArthur Lockrem
A fix for this has recently been implemented.

You can enable this option from Setup by clicking Develop > Apex Test Execution > Options..., selecting Independent Auto-Number Sequence, and clicking OK. 
This was selected as the best answer
GC_00001GC_00001
Brilliant - thank you.
Arthur LockremArthur Lockrem
You're welcome.  If this resolved your issue please select the answer and mark the question as resolved.  Thank you