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

Workspace support and better error messages #178

Merged
merged 13 commits into from
Apr 5, 2016

Conversation

ksuther
Copy link
Contributor

@ksuther ksuther commented Apr 3, 2016

This can be split into multiple pull requests if necessary.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.8%) to 95.101% when pulling ba0b13b on ksuther:workspace-support into 168f1f8 on SlatherOrg:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.8%) to 95.066% when pulling 890a816 on ksuther:workspace-support into 168f1f8 on SlatherOrg:master.

@@ -61,15 +61,29 @@ def self.open(xcodeproj)
proj
end

def failure_help_string
"\n\tAre you sure your project is generating coverage? Try `slather setup your/project.xcodeproj`.\n\tDid you specify your Xcode scheme? (--scheme or 'scheme' in .slather.yml)\n\tIf you're using a workspace, did you specify it? (--workspace or 'workspace' in .slather.yml)"
Copy link
Member

Choose a reason for hiding this comment

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

I like this, but I'd rather not have the setup command in here anymore, because it is only relevant for folks using older Xcodes.

@neonichu
Copy link
Member

neonichu commented Apr 5, 2016

This PR is great 👍 — thanks a lot, @ksuther! Once comment is addressed and changelog entry is added it is good to merge :)

ksuther added a commit to ksuther/slather that referenced this pull request Apr 5, 2016
ksuther added 13 commits April 5, 2016 10:47
Otherwise slather gets required because coverage is started and the main libraries aren't covered.
Specify workspace in the yml config or --workspace on the command line to specify the workspace that is used to build the project.
Code coverage doesn't work for static libraries.
Tests will build the fixtures xcodeproj with a workspace to ensure it works, but we're only using the coverage from the first xcodebuild command for testing the coverage output.
Encourage specifying the scheme when running slather.
Add information about building with workspaces.
Changed "Previous versions of Xcode" to be more explicit about what versions it's talking about.
Added installation instructions for people that don't use a Gemfile.
@ksuther ksuther force-pushed the workspace-support branch from 7c2b3b3 to be437e3 Compare April 5, 2016 14:48
@ksuther
Copy link
Contributor Author

ksuther commented Apr 5, 2016

Done!

@neonichu
Copy link
Member

neonichu commented Apr 5, 2016

:shipit:

@neonichu neonichu merged commit 8f677fd into SlatherOrg:master Apr 5, 2016
@ksuther ksuther deleted the workspace-support branch April 5, 2016 14:53
@gblotter
Copy link

gblotter commented Apr 5, 2016

@neonichu What is your SOP for tagging and releasing? Do you wait until you have several things to release? Or do you tag and release whenever you merge?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling be437e3 on ksuther:workspace-support into * on SlatherOrg:master*.

@neonichu
Copy link
Member

neonichu commented Apr 5, 2016

@gblotter it depends, if there's PRs lined up that will be finished very soon or just smaller things, I'll tend to wait, more important changes I'm releasing ASAP.

@gblotter
Copy link

gblotter commented Apr 5, 2016

@neonichu Can I ask where this one falls? 😊

@neonichu
Copy link
Member

neonichu commented Apr 5, 2016

Would be the former, but I'm seeing some issues while testing locally, so it might happen later rather than sooner :)

@ksuther
Copy link
Contributor Author

ksuther commented Apr 5, 2016

@neonichu Let me know if you run into any regressions from these changes.

@neonichu
Copy link
Member

neonichu commented Apr 5, 2016

@ksuther will do, first have to determine if it is actually one, my projects were using an ancient branch of slather until now

@lwdupont
Copy link

lwdupont commented Apr 5, 2016

I am using slather at work, and want to give it a try - easy to pull from master? (still a little new to gems).

@ksuther
Copy link
Contributor Author

ksuther commented Apr 5, 2016

@lwdupont gem build slather.gemspec && gem install slather-2.0.2.gem will install it locally.

@lwdupont
Copy link

lwdupont commented Apr 5, 2016

@ksuther Thanks, and thanks for everyone's work on slather. Seems to work fine with the test shell script I have set up. Still trying to find my cobertura file, but pretty sure that's on me :) (no errors running it). 👍

@neonichu
Copy link
Member

neonichu commented Apr 6, 2016

@ksuther FYI, I made a small fix in #183 — this was hitting me in my manual testing.

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.

`profdata_coverage_dir': No coverage directory found. Xcode 7.3 Friendly error messages
5 participants