Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.44 KB

suppressed_tests.md

File metadata and controls

61 lines (45 loc) · 1.44 KB

🗜 suppressed_tests

Do you have an automated process that requires the list of suppressed tests in your Xcode project or Scheme? Use this action to get that list.

skipped tests

Examples

UI.important(
  'example: ' \
  'get the tests that are suppressed in a Scheme in the Project'
)
tests = suppressed_tests(
  xcodeproj: 'AtomicBoy/AtomicBoy.xcodeproj',
  scheme: 'AtomicBoy'
)
UI.message("Suppressed tests for scheme: #{tests}")
UI.important(
  'example: ' \
  'get the tests that are suppressed in all Schemes in the Project'
)
UI.message(
  "Suppressed tests for project: #{suppressed_tests(xcodeproj: 'AtomicBoy/AtomicBoy.xcodeproj')}"
)
UI.important(
  'example: ' \
  'get the tests that are suppressed in all Schemes in a workspace'
)
tests = suppressed_tests(
  workspace: File.absolute_path('../AtomicBoy/AtomicBoy.xcworkspace'),
  scheme: 'Professor'
)
UI.message("tests: #{tests}")

Parameters

Parameter Description Default Value
xcodeproj The file path to the Xcode project file to read the skipped tests from
workspace The file path to the Xcode workspace file to read the skipped tests from
scheme The Xcode scheme where the suppressed tests may be