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

Fix for not being able to find some xctest bundles #167

Merged
merged 3 commits into from
Mar 16, 2016

Conversation

ksuther
Copy link
Contributor

@ksuther ksuther commented Mar 15, 2016

Update xctest_bundle using the search_for variable. Before xctest_bundle would be set to the first xctest bundle in the build products, even if we're searching for a different test target.

For example, a command such as:

slather coverage --scheme MyScheme --binary-basename BTests --html MyProject.xcodeproj

Would pick ATests over BTests if there are test targets for ATests and BTests, because ATests would always be the first path returned in the initial assignment.

Update xctest_bundle using the search_for variable. Before xctest_bundle would be set to the first xctest bundle in the build products, even if we're searching for a different test target.

For example, a command such as:

slather coverage --scheme MyScheme --binary-basename BTests --html MyProject.xcodeproj

Would pick ATests over BTests if there are test targets for ATests and BTests, because ATests would always be the first path returned in the initial assignment.
@ksuther
Copy link
Contributor Author

ksuther commented Mar 16, 2016

Looks like CI failed from an error in curl.

@neonichu
Copy link
Member

I triggered a rerun, but there seems to be one legitimate failure.

That way if there's no match for the search term we still fall back to the first found bundle.
@neonichu
Copy link
Member

Great, could you please add an entry to the changelog, then this is good to go!

@ksuther
Copy link
Contributor Author

ksuther commented Mar 16, 2016

Done, thanks!

@neonichu
Copy link
Member

Awesome, thanks a lot for the contribution! 🎉

neonichu added a commit that referenced this pull request Mar 16, 2016
Fix for not being able to find some xctest bundles
@neonichu neonichu merged commit e04ea46 into SlatherOrg:master Mar 16, 2016
@ksuther ksuther deleted the xctest-bundle-binary-path branch March 16, 2016 22:38
keatongreve pushed a commit to keatongreve/slather that referenced this pull request Mar 23, 2016
Fix for not being able to find some xctest bundles
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.

2 participants