Categories
iOS Development

How to play sounds when Unit Tests in XCode finish with success or failure

Currently I work on a project that has a lot of tests that take some time to finish. Usually I switch to working on something else while the tests are running in the background. Sometimes I deep dive into the other stuff so that I nearly forget about the tests I started before πŸ˜…

I thought it would be nice to get some acoustic notification when all tests are finished. Luckily this is already implemented in XCode!

  1. Go to XCode’s Preferences
  2. Switch to Behaviors
  3. Go to Section Testing
  4. Pick whatever you want for succeeding or failing tests.
    You can even use speak announcements (which I think is kind of annoyingπŸ˜ƒ). I like the sound Glass for succeeding tests and Blow for failing tests.

Leave a Reply

Your email address will not be published. Required fields are marked *