{"id":34627,"date":"2022-01-05T16:06:19","date_gmt":"2022-01-05T21:06:19","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=34627"},"modified":"2022-01-05T16:06:19","modified_gmt":"2022-01-05T21:06:19","slug":"using-kaleidoscope-with-xctest-failures","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/01\/05\/using-kaleidoscope-with-xctest-failures\/","title":{"rendered":"Using Kaleidoscope with XCTest Failures"},"content":{"rendered":"<p><a href=\"https:\/\/blog.kaleidoscope.app\/2022\/01\/04\/xctest-results\/\">Florian Albrecht<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.kaleidoscope.app\/2022\/01\/04\/xctest-results\/\">\n<p>Kaleidoscope 3.1.3 and later can show <code>XCTest<\/code> failures in that format for you! No further trick or conversion is needed. Kaleidoscope parses the incoming content and automatically splits it into A and B parts, so the exact differences can be seen instantly.<\/p>\n<\/blockquote>\n<p>You can drag and drop from Xcode&rsquo;s issues navigator to Kaleidoscope&rsquo;s Dock icon.<\/p>\n<p>Xcode goes to great lengths to provide specialized previews for user interface code, playgrounds, etc., but its tools for viewing unit test output are so primitive. I&rsquo;ve long used a wrapper for <code>XCTAssertEqual<\/code> that prints the expected and actual values on separate lines, so that at least they line up and you can more easily see the differences. It can also optionally <code>diff<\/code> them to help find the interesting lines. This Kaleidoscope feature goes further by highlighting differences within a line.<\/p>","protected":false},"excerpt":{"rendered":"<p>Florian Albrecht: Kaleidoscope 3.1.3 and later can show XCTest failures in that format for you! No further trick or conversion is needed. Kaleidoscope parses the incoming content and automatically splits it into A and B parts, so the exact differences can be seen instantly. You can drag and drop from Xcode&rsquo;s issues navigator to Kaleidoscope&rsquo;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-01-05T21:06:22Z","apple_news_api_id":"235dcf11-3bb2-4fe8-b37d-d12cc004fb4b","apple_news_api_modified_at":"2022-01-05T21:06:22Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AI13PETuyT-izfdEswAT7Sw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[2058,30,2077,71,268,226],"class_list":["post-34627","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-kaleidoscope","tag-mac","tag-macos-12","tag-programming","tag-testing","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=34627"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34627\/revisions"}],"predecessor-version":[{"id":34628,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34627\/revisions\/34628"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=34627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=34627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=34627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}