-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstep.yml
143 lines (113 loc) · 5.12 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
title: Xcode Test without building
summary: Tests compiled bundles.
description: Tests compiled bundles by running `xcodebuild test-without-building` command.
website: https://github.com/bitrise-steplib/bitrise-step-xcode-test-without-building
source_code_url: https://github.com/bitrise-steplib/bitrise-step-xcode-test-without-building
support_url: https://github.com/bitrise-steplib/bitrise-step-xcode-test-without-building/issues
type_tags:
- test
project_type_tags:
- ios
- react-native
- cordova
- ionic
toolkit:
go:
package_name: github.com/bitrise-steplib/bitrise-step-xcode-test-without-building
inputs:
- xctestrun: $BITRISE_XCTESTRUN_FILE_PATH
opts:
title: xctestrun file path
summary: Test run parameters file, generated during the build-for-testing action.
is_required: true
- destination: platform=iOS Simulator,name=iPhone 8 Plus,OS=latest
opts:
title: Device destination specifier
summary: Destination specifier describes the device to use as a destination.
description: |-
Destination specifier describes the device to use as a destination.
The input value sets xcodebuild's `-destination` option.
is_required: true
# Test Configuration
- only_testing:
opts:
category: Test Selection
title: Test identifier list to execute
summary: The step will execute only the listed tests.
description: |-
The step will execute only the listed tests.
The input value sets xcodebuild's `-only-testing` option and you can enter multiple test identifiers separated by a newline.
The input field supports the same options as xcodebuild:
- Test target name only: `MyAppTests`
- Test target and test class name: `MyAppTests/MyAppTests`
- Test target, class and function name: `MyAppTests/MyAppTests/testExample`
The input value can be a filepath as well which contains the list of tests separated by a newline character.
- skip_testing:
opts:
category: Test Selection
title: Test identifier list to skip
summary: The step will skip the listed tests during execution.
description: |-
The step will skip the listed tests during execution.
The input value sets xcodebuild's `-skip-testing` option and you can enter multiple test identifiers separated by a newline.
The input field supports the same options as xcodebuild:
- Test target name only: `MyAppTests`
- Test target and test class name: `MyAppTests/MyAppTests`
- Test target, class and function name: `MyAppTests/MyAppTests/testExample`
The input value can be a filepath as well which contains the list of tests separated by a newline character.
# Test Repetition
- test_repetition_mode: none
opts:
category: Test Repetition
title: Test Repetition Mode (Available in Xcode 13+)
summary: Determines how the tests will repeat.
description: |-
Determines how the tests will repeat.
Available options:
- `none`: Tests will never repeat.
- `until_failure`: Tests will repeat until failure or up to maximum repetitions.
- `retry_on_failure`: Only failed tests will repeat up to maximum repetitions.
- `up_until_maximum_repetitions`: Tests will repeat up until maximum repetitions.
The input value together with Maximum Test Repetitions (`maximum_test_repetitions`) input sets xcodebuild's `-run-tests-until-failure` / `-retry-tests-on-failure` or `-test-iterations` option.
value_options:
- none
- until_failure
- retry_on_failure
- up_until_maximum_repetitions
- maximum_test_repetitions: "3"
opts:
category: Test Repetition
title: Maximum Test Repetitions (Available in Xcode 13+)
summary: The maximum number of times a test repeats based on the Test Repetition Mode (`test_repetition_mode`).
description: |-
The maximum number of times a test repeats based on the Test Repetition Mode (`test_repetition_mode`).
Should be more than 1 if the Test Repetition Mode is other than `none`.
The input value sets xcodebuild's `-test-iterations` option.
is_required: true
- relaunch_tests_for_each_repetition: "no"
opts:
title: Relaunch Tests for Each Repetition (Available in Xcode 13+)
category: Test Repetition
summary: If this input is set, tests will launch in a new process for each repetition.
description: |-
If this input is set, tests will launch in a new process for each repetition.
By default, tests launch in the same process for each repetition.
The input value sets xcodebuild's `-test-repetition-relaunch-enabled` option.
value_options:
- "yes"
- "no"
# xcodebuild configuration
- xcodebuild_options: ""
opts:
category: xcodebuild configuration
title: Additional options for the xcodebuild command
summary: Additional options to be added to the executed xcodebuild command.
outputs:
- BITRISE_XCRESULT_PATH:
opts:
title: Test result bundle path
summary: The result bundle path generated by `xcodebuild test-without-building`.
- BITRISE_XCRESULT_ZIP_PATH:
opts:
title: Zipped test result bundle path
summary: The zipped result bundle path generated by `xcodebuild test-without-building`.