Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom Derived Data folder #21

Closed
lyahdav opened this issue May 2, 2017 · 5 comments
Closed

Support custom Derived Data folder #21

lyahdav opened this issue May 2, 2017 · 5 comments
Assignees
Milestone

Comments

@lyahdav
Copy link

lyahdav commented May 2, 2017

It would be great if this project supported AppCode. AppCode's DerivedData folder is under ~/Library/Caches/AppCode2017.1/DerivedData, though it should be a setting because that AppCode2017.1 changes with AppCode versions.

@Antondomashnev
Copy link
Owner

Hi @lyahdav, thanks for proposing it. I will add as a part of a next minor release 🚀

@Antondomashnev
Copy link
Owner

@lyahdav hi ✋ I've created a preference view (at the moment a simple one) but with the option to set a custom Derived Data path. Will be in 0.3.0 release 🎉

@lyahdav
Copy link
Author

lyahdav commented May 18, 2017

@Antondomashnev Thanks for implementing this! I just tried 0.3.0 and unfortunately it didn't work. I set the DerivedData path to ~/Library/Caches/AppCode2017.1/DerivedData, restarted the app, and ran a failing snapshot test in AppCode. Then I clicked the FBSnapshostViewer icon in the top menu but nothing happened. I verified that under DerivedData/<App>/Logs/Build there's a new .xcactivitylog file. Is that the file that this tool monitors? If so, I was surprised because that is a binary file (though I also noticed the same kind of binary .xcactivitylog file under Xcode's DerivedData folder).

@Antondomashnev
Copy link
Owner

Hi @lyahdav, it's actually watching for the file in the derived data folder with the path that passes the following regex: 'Logs/Test/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}/.+log$"'. I guess the app code doesn't have that structure, but is there a chance that it has the '.log' file? In case of Xcode it is basically the console output.
If that can not be applied to app code, may I ask you to zip any test's project derived data folder after running snapshot tests, that would be helpful for me to understand what the tool needs to parse 😄

@Antondomashnev Antondomashnev changed the title Support AppCode Support custom Derived Data folder May 18, 2017
@Antondomashnev
Copy link
Owner

@lyahdav FYI I've renamed the issue to support custom Derived Data folder and I've created a new one to support App Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants