@@ -22,114 +22,114 @@ private const val DEFAULT_OUTPUT_TIMEOUT_MILLIS: Long = 60_000
22
22
data class Configuration (
23
23
val outputDir : File ,
24
24
25
- val customAnalyticsTracker : Tracker ? ,
25
+ val cache : CacheConfiguration ,
26
26
val poolingStrategy : PoolingStrategy ,
27
27
val shardingStrategy : ShardingStrategy ,
28
28
val sortingStrategy : SortingStrategy ,
29
29
val batchingStrategy : BatchingStrategy ,
30
30
val flakinessStrategy : FlakinessStrategy ,
31
31
val retryStrategy : RetryStrategy ,
32
32
val filteringConfiguration : FilteringConfiguration ,
33
- val strictRunFilterConfiguration : StrictRunFilterConfiguration ,
34
- val listener : MarathonListener ? ,
33
+ val strictRunConfiguration : StrictRunConfiguration ,
35
34
36
- val cache : CacheConfiguration ,
35
+ val debug : Boolean ,
37
36
val ignoreFailures : Boolean ,
38
37
val strictMode : Boolean ,
39
38
val uncompletedTestRetryQuota : Int ,
40
39
41
- val testClassRegexes : Collection <Regex >,
42
40
val includeSerialRegexes : Collection <Regex >,
43
41
val excludeSerialRegexes : Collection <Regex >,
42
+ val testClassRegexes : Collection <Regex >,
44
43
val ignoreFailureRegexes : Collection <Regex >,
45
44
val failFastFailureRegexes : Collection <Regex >,
46
45
47
46
val testOutputTimeoutMillis : Long ,
48
47
val noDevicesTimeoutMillis : Long ,
49
- val debug : Boolean ,
50
48
49
+ val analyticsTracker : Tracker ? ,
50
+ val listener : MarathonListener ? ,
51
51
val vendorConfiguration : VendorConfiguration
52
52
) {
53
53
54
54
constructor (
55
55
outputDir: File ,
56
56
57
- customAnalyticsTracker : Tracker ? ,
57
+ cache : CacheConfiguration ? ,
58
58
poolingStrategy: PoolingStrategy ? ,
59
59
shardingStrategy: ShardingStrategy ? ,
60
60
sortingStrategy: SortingStrategy ? ,
61
61
batchingStrategy: BatchingStrategy ? ,
62
62
flakinessStrategy: FlakinessStrategy ? ,
63
63
retryStrategy: RetryStrategy ? ,
64
64
filteringConfiguration: FilteringConfiguration ? ,
65
- strictRunFilterConfiguration: StrictRunFilterConfiguration ? ,
66
- listener: MarathonListener ? ,
65
+ strictRunConfiguration: StrictRunConfiguration ? ,
67
66
68
- cache : CacheConfiguration ? ,
67
+ debug : Boolean ? ,
69
68
ignoreFailures: Boolean? ,
70
69
strictMode: Boolean? ,
71
70
uncompletedTestRetryQuota: Int? ,
72
71
73
- testClassRegexes: Collection <Regex >? ,
74
72
includeSerialRegexes: Collection <Regex >? ,
75
73
excludeSerialRegexes: Collection <Regex >? ,
74
+ testClassRegexes: Collection <Regex >? ,
76
75
ignoreFailureRegexes: Collection <Regex >? ,
77
76
failFastFailureRegexes: Collection <Regex >? ,
78
77
79
78
testOutputTimeoutMillis: Long? ,
80
79
noDevicesTimeoutMillis: Long? ,
81
- debug: Boolean? ,
82
80
81
+ analyticsTracker: Tracker ? ,
82
+ listener: MarathonListener ? ,
83
83
vendorConfiguration: VendorConfiguration
84
84
) :
85
85
86
86
this (
87
87
outputDir = outputDir,
88
- customAnalyticsTracker = customAnalyticsTracker ,
88
+ cache = cache ? : CacheConfiguration () ,
89
89
poolingStrategy = poolingStrategy ? : OmniPoolingStrategy (),
90
90
shardingStrategy = shardingStrategy ? : ParallelShardingStrategy (),
91
91
sortingStrategy = sortingStrategy ? : NoSortingStrategy (),
92
92
batchingStrategy = batchingStrategy ? : IsolateBatchingStrategy (),
93
93
flakinessStrategy = flakinessStrategy ? : IgnoreFlakinessStrategy (),
94
94
retryStrategy = retryStrategy ? : NoRetryStrategy (),
95
- filteringConfiguration = filteringConfiguration ? : FilteringConfiguration (emptyList(), emptyList() ),
96
- strictRunFilterConfiguration = strictRunFilterConfiguration ? : StrictRunFilterConfiguration (emptyList() ),
97
- cache = cache ? : CacheConfiguration () ,
95
+ filteringConfiguration = filteringConfiguration ? : FilteringConfiguration (),
96
+ strictRunConfiguration = strictRunConfiguration ? : StrictRunConfiguration ( ),
97
+ debug = debug ? : true ,
98
98
ignoreFailures = ignoreFailures ? : false ,
99
99
strictMode = strictMode ? : false ,
100
- listener = listener,
101
100
uncompletedTestRetryQuota = uncompletedTestRetryQuota ? : Integer .MAX_VALUE ,
102
- testClassRegexes = testClassRegexes ? : listOf (Regex (" ^((?!Abstract).)*Test$" )),
103
101
includeSerialRegexes = includeSerialRegexes ? : emptyList(),
104
102
excludeSerialRegexes = excludeSerialRegexes ? : emptyList(),
103
+ testClassRegexes = testClassRegexes ? : listOf (Regex (" ^((?!Abstract).)*Test$" )),
105
104
ignoreFailureRegexes = ignoreFailureRegexes ? : emptyList(),
106
105
failFastFailureRegexes = failFastFailureRegexes ? : emptyList(),
107
106
testOutputTimeoutMillis = testOutputTimeoutMillis ? : DEFAULT_OUTPUT_TIMEOUT_MILLIS ,
108
107
noDevicesTimeoutMillis = noDevicesTimeoutMillis ? : DEFAULT_NO_DEVICES_TIMEOUT_MILLIS ,
109
- debug = debug ? : true ,
108
+ analyticsTracker = analyticsTracker,
109
+ listener = listener,
110
110
vendorConfiguration = vendorConfiguration
111
111
)
112
112
113
113
fun toMap () =
114
114
mapOf<String , String >(
115
115
" outputDir" to outputDir.absolutePath,
116
+ " cache" to cache.toString(),
116
117
" pooling" to poolingStrategy.toString(),
117
118
" sharding" to shardingStrategy.toString(),
118
119
" sorting" to sortingStrategy.toString(),
119
120
" batching" to batchingStrategy.toString(),
120
121
" flakiness" to flakinessStrategy.toString(),
121
122
" retry" to retryStrategy.toString(),
122
123
" filtering" to filteringConfiguration.toString(),
123
- " strictRunFilter " to strictRunFilterConfiguration .toString(),
124
- " cache " to cache .toString(),
124
+ " strictRun " to strictRunConfiguration .toString(),
125
+ " debug " to debug .toString(),
125
126
" ignoreFailures" to ignoreFailures.toString(),
126
127
" strictMode" to strictMode.toString(),
127
- " testClassRegexes" to testClassRegexes.toString(),
128
128
" includeSerialRegexes" to includeSerialRegexes.toString(),
129
129
" excludeSerialRegexes" to excludeSerialRegexes.toString(),
130
+ " testClassRegexes" to testClassRegexes.toString(),
130
131
" testOutputTimeoutMillis" to testOutputTimeoutMillis.toString(),
131
132
" noDevicesTimeoutMillis" to noDevicesTimeoutMillis.toString(),
132
- " debug" to debug.toString(),
133
133
" vendorConfiguration" to vendorConfiguration.toString()
134
134
)
135
135
}
0 commit comments