Antondomashnev / FBSnapshotsViewer

A mac os application that shows the failing snapshot tests from FBSnapshotTestCase
MIT License
224 stars 15 forks source link

Use filesystem watcher on the logs to find out when a build has passed #15

Closed orta closed 7 years ago

orta commented 7 years ago

Full code: DeveloperDirWatcher.swift

In every project logs are stored in places like this: Users/orta/Library/Developer/Xcode/DerivedData/Aerodramus-elioeeoyxfebivbqkcrplnueiqkk/Logs/Test

So you can watch the Users/orta/Library/Developer/Xcode/DerivedData folder with File System Events

I then

Rinse and repeat.

orta commented 7 years ago

In theory you can be smarter too, if you mix it with polling the Xcode AppleScript API, you can figure out what are active projects, then only listen to FSEvents for those apps.

Antondomashnev commented 7 years ago

Thanks, @orta I should've thought about this way of getting failed images. This looks more powerful than what I have now because you can get also the new records of the images.

Antondomashnev commented 7 years ago

Thanks once again @orta, this is implemented and will be a part of new release soon.

orta commented 7 years ago

Tests and everything - fancy!

-- [·/ ] Orta Therox

w/ Artsy http://artsy.net/ CocoaPods http://cocoapods.org/ / CocoaDocs http://cocoadocs.org/ @orta / orta.github.com

On Mon, May 1, 2017 at 11:18 AM, Anton notifications@github.com wrote:

Closed #15 https://github.com/Antondomashnev/FBSnapshotsViewer/issues/15 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Antondomashnev/FBSnapshotsViewer/issues/15#event-1063859952, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC_jtf7rpwwWnIOt93rwP4c55_q3Ry0ks5r1bFYgaJpZM4Mo3hG .