Backfill some unit tests for Runner's interaction with TreeProcessor

This commit is contained in:
Steve Gravrock
2025-07-29 09:48:32 -07:00
parent bb777e93e5
commit 5e88fde655
4 changed files with 278 additions and 2 deletions

View File

@@ -497,6 +497,7 @@ getJasmineRequireObj().Env = function(j$) {
runableResources,
reporter,
queueRunnerFactory,
TreeProcessor: j$.TreeProcessor,
getConfig: () => config,
reportSpecDone
});

View File

@@ -7,6 +7,7 @@ getJasmineRequireObj().Runner = function(j$) {
this.focusedRunables_ = options.focusedRunables;
this.runableResources_ = options.runableResources;
this.queueRunnerFactory_ = options.queueRunnerFactory;
this.TreeProcessor_ = options.TreeProcessor;
this.reporter_ = options.reporter;
this.getConfig_ = options.getConfig;
this.reportSpecDone_ = options.reportSpecDone;
@@ -54,7 +55,7 @@ getJasmineRequireObj().Runner = function(j$) {
seed: j$.isNumber_(config.seed) ? config.seed + '' : config.seed
});
const processor = new j$.TreeProcessor({
const processor = new this.TreeProcessor_({
tree: this.topSuite_,
runnableIds: runablesToRun,
queueRunnerFactory: options => {