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

Feature request: improved support for native Xcode 8 tests, now that xctool won't be actively supported for it #6430

Closed
benasher44 opened this issue Aug 8, 2016 · 6 comments

Comments

@benasher44
Copy link

benasher44 commented Aug 8, 2016

More info on xctool support for Xcode 8: facebookarchive/xctool#704.

tl;dr it seems to be that it won't be actively maintained outside of those in the community that still want to support it (although with enough community support, maybe this qualifies as active maintenance). My take is that this is probably because xcodebuild has improved a lot in Xcode 8 in terms of being a feature-full test runner:

  • Can specifically include/exclude tests that you want xcodebuild to run
  • 2 new build actions: build-for-testing and test-without-building (good for allowing one machine to build, while other machines just get the test build artifacts and run tests with them)

Specific things that would be nice to see supported:

  • Specifying the xcode_project, xcode_workspace, and xcode_scheme configuration keys uses xcodebuild to run tests instead of xctool on Xcode 8 machines
  • New configuration keys in .travis.yml for specifying the arguments to pass to the test runner to include or exclude specific tests (new in Xcode 8)

From the Travis infra side of things, it seems like the new build-for-testing and test-without-building actions would be pretty exciting because it could mean reduced time spent rebuilding the same test files when the goal is just to parallelize tests across multiple machines. The combination of new configuration keys to specify which tests to run + the Travis build matrix feature could make this intent easy to communicate in the .travis.yml.

@LavrL
Copy link

LavrL commented Oct 6, 2016

@benasher44 Do you have any updates how to run xctool for xcode 8?

@benasher44
Copy link
Author

I just don't run it for Xcode 8. I use xcodebuild

@LavrL
Copy link

LavrL commented Oct 6, 2016

I use xctool 0.2.8 and OClint -0.10.1-x86-64-darwin-15.0.0. When I started to analyze code for xcode 8, it starts to fail.

How I do it :

I copy run-sonar.sh and sonar-project.properties in workspace of project and run run-sonar.sh.

Before some days it worked perfectly.

Is it any other way to make it work?

@benasher44
Copy link
Author

I'm not sure. I recommend asking in the xctool project.

@tamastimar
Copy link

If xcodebuild will be the default command please consider xcpretty also.

@stale
Copy link

stale bot commented Apr 13, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Apr 13, 2018
@stale stale bot closed this as completed Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants