-
Couldn't load subscription status.
- Fork 858
Add support for specifying the UI testing screenshot behavior in a scheme test action #942
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
Add support for specifying the UI testing screenshot behavior in a scheme test action #942
Conversation
|
I'm guessing that the Xcode 12 job was recently added? The failure looks unrelated to this PR. |
|
@brentleyjones Is there any appetite for merging this change soon? My team in particular is definitely looking forward to it. |
|
I'm on paternity leave for a while. @yonaskolb can you take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as though these 2 booleans end up as an enum, we could also just add a simple attachmentLifetime enum to the spec instead. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yonaskolb any more thoughts on this? I'm happy to make this change if you think it's the right call.
d9dc697 to
8a29412
Compare
8a29412 to
27c985c
Compare
Sources/ProjectSpec/Scheme.swift
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write these values below in toJSONValue if they differ from the default
27c985c to
4d1f51a
Compare
Sources/ProjectSpec/Scheme.swift
Outdated
| "region": region, | ||
| "coverageTargets": coverageTargets.map { $0.reference }, | ||
| "captureScreenshotsAutomatically": captureScreenshotsAutomatically, | ||
| "deleteScreenshotsWhenEachTestSucceeds": deleteScreenshotsWhenEachTestSucceeds, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Sorry if it wasn't clear before, but these values should only be written to the dictionary if they are not their default value (true), like below. This is so generated specs only contain the required information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, got it! This makes perfect sense. Will make the change right away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @daltonclaybrook!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍

Resolves #941