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 *

Privacy Overview
mic.st

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.