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

Flag out WorkflowTesting APIs when in Release mode #872

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

dhavalshreyas
Copy link
Contributor

Issue:
pod trunk push WorkflowTesting.podspec fails during validation.

Reason:
Workflow is built with ENABLE_TESTABILITY=NO for Release builds, causing @testable import WorkflowTesting to fail compilation in Release.

Proposal:
WorkflowTesting is meant to be used for Unit Testing only. Flag out the relevant bits when not in Debug mode.

Copy link
Contributor

@JustinDSN JustinDSN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea @dhavalshreyas.

@dhavalshreyas dhavalshreyas changed the title Flag out WorkflowTesting APIs when in Release mode [WIP] Flag out WorkflowTesting APIs when in Release mode Jan 14, 2020
@AquaGeek
Copy link
Contributor

Have we verified this against a sample app?

@zach-klippenstein zach-klippenstein added this to In progress in Workflow (Swift) via automation Jan 14, 2020
@zach-klippenstein zach-klippenstein added the bug Something isn't working label Jan 14, 2020
@dhavalshreyas
Copy link
Contributor Author

Have we verified this against a sample app?

@AquaGeek: Yes, I did try this with a few sample apps.

@JustinDSN brought up a good point, we don't have WorkflowTesting-Unit-Tests in the test matrix. I'll add it on my todos to add something there.

Workflow (Swift) automation moved this from In progress to Reviewer approved Jan 14, 2020
@dhavalshreyas dhavalshreyas merged commit 92cec0f into master Jan 14, 2020
Workflow (Swift) automation moved this from Reviewer approved to Done Jan 14, 2020
@dhavalshreyas dhavalshreyas deleted the dhaval/workflowTestingDebugOnly branch January 14, 2020 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants