MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / execute2_

Method execute2_

ui/plugins/ui/jasmine/jasmine.js:8004–8068  ·  view source on GitHub ↗
(runablesToRun, order, processor)

Source from the content-addressed store, hash-verified

8002 }
8003
8004 async execute2_(runablesToRun, order, processor) {
8005 const totalSpecsDefined = this.totalSpecsDefined_()
8006
8007 this.runableResources_.initForRunable(this.topSuite_.id)
8008 const jasmineTimer = new j$.Timer()
8009 jasmineTimer.start()
8010
8011 /**
8012 * Information passed to the {@link Reporter#jasmineStarted} event.
8013 * @typedef JasmineStartedInfo
8014 * @property {Int} totalSpecsDefined - The total number of specs defined in this suite.
8015 * @property {Order} order - Information about the ordering (random or not) of this execution of the suite.
8016 * @since 2.0.0
8017 */
8018 await this.reporter_.jasmineStarted({
8019 totalSpecsDefined,
8020 order: order,
8021 })
8022
8023 this.currentlyExecutingSuites_.push(this.topSuite_)
8024 await processor.execute()
8025
8026 if (this.topSuite_.hadBeforeAllFailure) {
8027 await this.reportChildrenOfBeforeAllFailure_(this.topSuite_)
8028 }
8029
8030 this.runableResources_.clearForRunable(this.topSuite_.id)
8031 this.currentlyExecutingSuites_.pop()
8032 let overallStatus, incompleteReason
8033
8034 if (this.hasFailures || this.topSuite_.result.failedExpectations.length > 0) {
8035 overallStatus = "failed"
8036 } else if (this.focusedRunables_().length > 0) {
8037 overallStatus = "incomplete"
8038 incompleteReason = "fit() or fdescribe() was found"
8039 } else if (totalSpecsDefined === 0) {
8040 overallStatus = "incomplete"
8041 incompleteReason = "No specs found"
8042 } else {
8043 overallStatus = "passed"
8044 }
8045
8046 /**
8047 * Information passed to the {@link Reporter#jasmineDone} event.
8048 * @typedef JasmineDoneInfo
8049 * @property {OverallStatus} overallStatus - The overall result of the suite: 'passed', 'failed', or 'incomplete'.
8050 * @property {Int} totalTime - The total time (in ms) that it took to execute the suite
8051 * @property {IncompleteReason} incompleteReason - Explanation of why the suite was incomplete.
8052 * @property {Order} order - Information about the ordering (random or not) of this execution of the suite.
8053 * @property {Expectation[]} failedExpectations - List of expectations that failed in an {@link afterAll} at the global level.
8054 * @property {Expectation[]} deprecationWarnings - List of deprecation warnings that occurred at the global level.
8055 * @since 2.4.0
8056 */
8057 const jasmineDoneInfo = {
8058 overallStatus: overallStatus,
8059 totalTime: jasmineTimer.elapsed(),
8060 incompleteReason: incompleteReason,
8061 order: order,

Callers 1

executeMethod · 0.95

Calls 6

initForRunableMethod · 0.80
pushMethod · 0.80
executeMethod · 0.80
clearForRunableMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected