Method: Xcodeproj::XCScheme::TestAction#code_coverage_targets

Defined in:
lib/xcodeproj/scheme/test_action.rb

#code_coverage_targetsArray<BuildableReference>

Returns The list of BuildableReference (code coverage targets) associated with this Test Action.

Returns:

  • (Array<BuildableReference>)

    The list of BuildableReference (code coverage targets) associated with this Test Action



157
158
159
160
161
162
163
# File 'lib/xcodeproj/scheme/test_action.rb', line 157

def code_coverage_targets
  return [] unless @xml_element.elements['CodeCoverageTargets']

  @xml_element.elements['CodeCoverageTargets'].get_elements('BuildableReference').map do |node|
    BuildableReference.new(node)
  end
end