How to perform clean test?

Sometimes I saw additional scenes named “InitTestScene0xxxx” in my git like this.
Any suggestions on how to clean it after the test is done?

I’m new to Unity, but I had a two possible suggestions:

  • Use .gitignore to ignore such files.
  • Change the output directory for your tests so that they’re not created in your local git repo.

Good luck!