It is always advisable you sleep with your dog in the same tent if possible. Being in a new environment or a new situation is never a good option to leave your dog outside or in a separate tent.
When looking for a tent for camping with dogs, make sure that you choose a tent that is durable enough to withstand their nails.