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

Xcode 10 changes for test schemes #583

Merged
merged 6 commits into from
Jun 28, 2018

Conversation

jkap
Copy link
Contributor

@jkap jkap commented Jun 27, 2018

added:

  • parallelization
  • randomized test order
  • whitelisted tests

Jenn Kaplan added 3 commits June 27, 2018 15:05
added:
* parallelization
* randomized test order
* whitelisted tests
@segiddins segiddins self-requested a review June 27, 2018 22:26
Copy link
Member

@segiddins segiddins left a comment

Choose a reason for hiding this comment

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

This looks really good! Just a couple of style nits

@@ -221,6 +221,7 @@ module Xcodeproj
test_ref.xml_element.name.should == 'TestableReference'
test_ref.xml_element.attributes.count.should == 1
test_ref.xml_element.attributes['skipped'].should == 'NO'
test_ref.randomized?.should.be.false?
Copy link
Member

Choose a reason for hiding this comment

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

test_ref.should.not.be.randomized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

did not know abt this syntax!

# Set the list of SelectedTest this action will run.
#
def selected_tests=(tests)
@xml_element.delete_element('SelectedTests') unless @xml_element.elements['SelectedTests'].nil?
Copy link
Member

Choose a reason for hiding this comment

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

should be able to delete the conditional on this line -- calling delete with a parameter that's not in the collection will just return nil

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is copied from skipped_tests= so i removed it there too

#
def selected_tests=(tests)
@xml_element.delete_element('SelectedTests') unless @xml_element.elements['SelectedTests'].nil?
if tests.nil?
Copy link
Member

Choose a reason for hiding this comment

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

return if tests.nil?

describe 'randomized' do
it '#randomized? detect a true value' do
@sut.xml_element.attributes['testExecutionOrdering'] = 'random'
@sut.randomized?.should == true
Copy link
Member

Choose a reason for hiding this comment

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

@sut.should.be.randomized


it '#randomized= set false value' do
@sut.randomized = false
@sut.xml_element.attributes['testExecutionOrdering'].should.nil?
Copy link
Member

Choose a reason for hiding this comment

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

should.be.nil

@jkap
Copy link
Contributor Author

jkap commented Jun 28, 2018

fixed @segiddins's review in 0a2137e

@dnkoutso
Copy link
Contributor

🚢

@segiddins segiddins merged commit 8b302d3 into CocoaPods:master Jun 28, 2018
@jkap jkap deleted the xcode10-test-improvements branch June 28, 2018 22:31
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.

3 participants