Created
August 6, 2019 09:48
-
-
Save grigorye/51f8174aa56cab49961526a94fbda5b7 to your computer and use it in GitHub Desktop.
Enable code coverage for the given .xcscheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/ruby | |
require 'xcodeproj' | |
xcscheme, * = ARGV | |
scheme = Xcodeproj::XCScheme.new File.join(xcscheme) | |
test_action = scheme.test_action | |
test_action.code_coverage_enabled = true | |
scheme.test_action = test_action | |
scheme.save! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment