Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
70 lines (55 loc) · 1.56 KB

suppress_tests.md

File metadata and controls

70 lines (55 loc) · 1.56 KB

🗜 suppress_tests

Have some tests that you want turned off? Give the list of the tests to this action in order to suppress them for your Xcode Project or Scheme.

Examples

UI.important(
  'example: ' \
  'suppress some tests in all Schemes for a Project'
)
suppress_tests(
  xcodeproj: 'AtomicBoy/AtomicBoy.xcodeproj',
  tests: [
    'AtomicBoyUITests/HappyNapperTests/testBeepingNonExistentFriendDisplaysError',
    'AtomicBoyUITests/GrumpyWorkerTests'
  ]
)
UI.important(
  'example: ' \
  'suppress some tests in one Scheme for a Project'
)
suppress_tests(
  xcodeproj: 'AtomicBoy/AtomicBoy.xcodeproj',
  tests: [
    'AtomicBoyUITests/HappyNapperTests/testBeepingNonExistentFriendDisplaysError',
    'AtomicBoyUITests/GrumpyWorkerTests'
  ],
  scheme: 'Professor'
)
UI.important(
  'example: ' \
  'suppress some tests in one Scheme from a workspace'
)
suppress_tests(
  workspace: 'AtomicBoy/AtomicBoy.xcworkspace',
  tests: [
    'AtomicBoyUITests/HappyNapperTests/testBeepingNonExistentFriendDisplaysError',
    'AtomicBoyUITests/GrumpyWorkerTests'
  ],
  scheme: 'Professor'
)

Parameters

Parameter Description Default Value
xcodeproj The file path to the Xcode project file to modify
workspace The file path to the Xcode workspace file to modify
tests A list of tests to suppress
scheme The Xcode scheme where the tests should be suppressed