How to use the gemini-core.promiseUtils.waitForResults function in gemini-core

To help you get started, we’ve selected a few gemini-core examples, based on popular ways it is used in public projects.

github gemini-testing / gemini / lib / runner / index.js View on Github external
_runTests(suiteCollection) {
        this.emit(Events.BEGIN_SESSION);

        return _(this._getBrowsersToRun())
            .map((browserId) => this._runTestsInBrowser(suiteCollection, browserId))
            .thru(promiseUtils.waitForResults)
            .value()
            .finally(() => this.emit(Events.END_SESSION));
    }
github gemini-testing / gemini / lib / runner / browser-runner / index.js View on Github external
run(suiteCollection, stateProcessor) {
        const suites = suiteCollection.clone().allSuites();

        return _(suites)
            .filter((suite) => _.includes(suite.browsers, this._browserId))
            .map((suite) => {
                if (suite.hasOwnProperty('url')) {
                    Object.defineProperty(suite, 'fullUrl', {
                        get: () => this._mkFullUrl(suite.url)
                    });
                }

                return this._runSuite(suite, stateProcessor);
            })
            .thru(promiseUtils.waitForResults)
            .value();
    }
github gemini-testing / gemini / lib / runner / browser-runner / index.js View on Github external
run(suiteCollection, stateProcessor) {
        const suites = suiteCollection.clone().allSuites();

        return _(suites)
            .filter((suite) => _.includes(suite.browsers, this._browserId))
            .map((suite) => {
                if (suite.hasOwnProperty('url')) {
                    Object.defineProperty(suite, 'fullUrl', {
                        enumerable: true,
                        get: () => this._mkFullUrl(suite.url)
                    });
                }

                return this._runSuite(suite, stateProcessor);
            })
            .thru(promiseUtils.waitForResults)
            .value();
    }