@@ -40,6 +40,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
4040 }
4141 private val toolInput = Option (" hey! i'm a tool!" )
4242 private val commitUuid = Option (Commit .Uuid (" uuid" ))
43+ private val batchSize = 5
4344
4445 private val defaultAnalyse = Analyze (
4546 options = CommonOptions (),
@@ -49,7 +50,8 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
4950 format = Json .name,
5051 toolTimeout = Option .empty,
5152 commitUuid = commitUuid,
52- extras = ExtraOptions (analyser = Analyser .defaultAnalyser.name))
53+ extras = ExtraOptions (analyser = Analyser .defaultAnalyser.name),
54+ uploadBatchSize = batchSize)
5355 private val defaultEnvironment = new Environment (Map .empty)
5456 private val httpHelper = new HttpHelper (remoteUrl, Map .empty, false )
5557
@@ -85,7 +87,8 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
8587 allowNetwork = Tag .of(1 ),
8688 upload = Tag .of(1 ),
8789 maxAllowedIssues = 5 ,
88- failIfIncomplete = Tag .of(1 ))
90+ failIfIncomplete = Tag .of(1 ),
91+ uploadBatchSize = batchSize)
8992
9093 val expectedConfiguration = CLIConfiguration (
9194 analysis = CLIConfiguration .Analysis (
@@ -106,7 +109,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
106109 extraToolConfigurations = Option .empty,
107110 extensionsByLanguage = Map .empty),
108111 maxToolMemory = Some (" 3000000000" )),
109- upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = true ),
112+ upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = true , batchSize = batchSize ),
110113 result = CLIConfiguration .Result (maxAllowedIssues = 5 , failIfIncomplete = true ))
111114
112115 val actualConfiguration =
@@ -169,7 +172,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
169172 extraToolConfigurations = Option .empty,
170173 extensionsByLanguage = Map .empty),
171174 maxToolMemory = Some (" 3000000000" )),
172- upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false ),
175+ upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false , batchSize = batchSize ),
173176 result = CLIConfiguration .Result (maxAllowedIssues = 0 , failIfIncomplete = false ))
174177
175178 val actualConfiguration =
@@ -221,7 +224,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
221224 .Extra (baseSubDir = engineConfig.baseSubDir, extraValues = engineConfig.extraValues))),
222225 extensionsByLanguage = Map (Languages .Scala -> Set (" .scala" , " .alacs" ))),
223226 maxToolMemory = Some (" 3000000000" )),
224- upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false ),
227+ upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false , batchSize = batchSize ),
225228 result = CLIConfiguration .Result (maxAllowedIssues = 0 , failIfIncomplete = false ))
226229
227230 val actualConfiguration =
@@ -254,7 +257,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
254257 extraToolConfigurations = Option .empty,
255258 extensionsByLanguage = Map .empty),
256259 maxToolMemory = Some (" 3000000000" )),
257- upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false ),
260+ upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false , batchSize = batchSize ),
258261 result = CLIConfiguration .Result (maxAllowedIssues = 0 , failIfIncomplete = false ))
259262
260263 val actualConfiguration =
@@ -334,7 +337,7 @@ class CLIConfigurationSpec extends Specification with NoLanguageFeatures {
334337 .Extra (baseSubDir = engineConfig.baseSubDir, extraValues = engineConfig.extraValues))),
335338 extensionsByLanguage = Map (Languages .Scala -> Set (" .sc" ))),
336339 maxToolMemory = Some (" 3000000000" )),
337- upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false ),
340+ upload = CLIConfiguration .Upload (commitUuid = commitUuid, upload = false , batchSize = batchSize ),
338341 result = CLIConfiguration .Result (maxAllowedIssues = 0 , failIfIncomplete = false ))
339342
340343 val actualConfiguration =
0 commit comments