Skip to content

Commit

Permalink
allow env override of thread count #2373
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Aug 7, 2023
1 parent 68028d2 commit fb6616c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion karate-core/src/main/java/com/intuit/karate/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static class Builder<T extends Builder> {
File workingDir;
String buildDir;
String configDir;
int threadCount;
int threadCount = 1;
int timeoutMinutes;
String reportDir;
String scenarioName;
Expand Down Expand Up @@ -181,6 +181,9 @@ public List<FeatureCall> resolveAll() {
if (ko.paths != null) {
paths = ko.paths;
}
if (ko.threads != threadCount) { // 1 by default
threadCount = ko.threads;
}
dryRun = ko.dryRun || dryRun;
}
String tempEnv = StringUtils.trimToNull(systemProperties.get(Constants.KARATE_ENV));
Expand Down

0 comments on commit fb6616c

Please sign in to comment.