Skip to content

Commit

Permalink
Re-do logic from jrunner.execute() in jasmine_runner.js since we're n…
Browse files Browse the repository at this point in the history
…ow calling jasmine.getEnv().execute(specs) instead (#609)
  • Loading branch information
gregmagolan authored Mar 11, 2019
1 parent 0e656e0 commit 430b48e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/jasmine/src/jasmine_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,16 @@ function main(args) {
process.exit(exitCode);
});

// Re-do logic from jrunner.execute() here so that
// we can control which specs are executed below
jrunner.loadRequires();
jrunner.loadHelpers();
if (!jrunner.defaultReporterConfigured) {
jrunner.configureDefaultReporter({showColors: jrunner.showingColors});
}
jrunner.loadSpecs();
jrunner.addReporter(jrunner.completionReporter);

const allSpecs = getAllSpecs(jasmine.getEnv());
if (TOTAL_SHARDS) {
// Partition the specs among the shards.
Expand All @@ -107,6 +116,7 @@ function main(args) {
} else {
jasmine.getEnv().execute(allSpecs);
}

return 0;
}

Expand Down

0 comments on commit 430b48e

Please sign in to comment.