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

Replace test_only attribute option with spec_types. #470

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Nov 15, 2018

In preparation of scheme support and now that we have app specs and test specs.

@dnkoutso dnkoutso added this to the 1.7 milestone Nov 15, 2018
@dnkoutso dnkoutso force-pushed the generalize_test_only branch 2 times, most recently from 4a78316 to 3feae9d Compare November 15, 2018 19:57
@dnkoutso
Copy link
Contributor Author

@segiddins where is the best place to ensure that the value of spec_types is actually within SUPPORTED_SPEC_TYPES array?

@@ -31,7 +31,7 @@ def initialize(name, options)

@multi_platform = options.delete(:multi_platform) { true }
@root_only = options.delete(:root_only) { false }
@test_only = options.delete(:test_only) { false }
@spec_types = options.delete(:spec_types) { [:app] }
Copy link
Member

Choose a reason for hiding this comment

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

default spec types should be all of them?

should also verify that (@spec_types - Specification::VALID_TYPES).empty?

(that constant might also need to be introduced)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks that was my question above. will change

@dnkoutso dnkoutso merged commit 6f17a0f into CocoaPods:master Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants