{"id":98,"date":"2020-03-06T14:22:53","date_gmt":"2020-03-06T13:22:53","guid":{"rendered":"https:\/\/mic.st\/blog\/?p=98"},"modified":"2020-03-06T17:20:33","modified_gmt":"2020-03-06T16:20:33","slug":"how-to-play-sounds-when-unit-tests-in-xcode-succeed-or-fail","status":"publish","type":"post","link":"https:\/\/mic.st\/blog\/how-to-play-sounds-when-unit-tests-in-xcode-succeed-or-fail\/","title":{"rendered":"How to play sounds when Unit Tests in XCode finish with success or failure"},"content":{"rendered":"\n<p>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 \ud83d\ude05<\/p>\n\n\n\n<p>I thought it would be nice to get some acoustic notification when all tests are finished. Luckily this is already implemented in XCode!<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to XCode&#8217;s <code>Preferences<\/code><\/li><li>Switch to <code>Behaviors<\/code><\/li><li>Go to Section <code>Testing<\/code><\/li><li>Pick whatever you want for succeeding or failing tests. <br>You can even use speak announcements (which I think is kind of annoying\ud83d\ude03). I like the sound <code>Glass<\/code> for succeeding tests and <code>Blow<\/code> for failing tests.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \ud83d\ude05 I&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-ios-development"],"_links":{"self":[{"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":0,"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"wp:attachment":[{"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mic.st\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}