Lines Matching refs:suite
200 if (this.suitesStack.some(suite => { return suite.description === desc })) {
209 console.info(`${TAG}filter suite : ${desc}`);
215 const suite = new SuiteService.Suite({ description: desc });
217 suite.isSkip = true;
218 suite.skipReason = this.suiteSkipReason;
225 this.currentRunningSuite.childSuites.push(suite);
228 this.currentRunningSuite.childSuites.push(suite);
229 this.currentRunningSuite = suite;
230 this.suitesStack.push(suite);
241 this.suitesStack.map(suite => {
242 finalDesc = finalDesc + '.' + suite.description;
247 console.info(`${TAG} runSkipped suite: ${desc}`);
249 console.info(reason == null ? `${TAG} skip suite: ${desc}` : `${TAG} skip suite: ${desc}, and the reason is ${reason}`);
253 console.info(reason == null ? `${TAG} skip suite: ${desc}` : `${TAG} skip suite: ${desc}, and the reason is ${reason}`);
290 setCurrentRunningSuite(suite) {
291 this.currentRunningSuite = suite;
303 setCurrentRunningSuiteDesc(suite, currentSuite, prefix) {
304 if (suite != null && suite === currentSuite) {
306 } else if (suite != null && suite !== currentSuite) {
307 suite.childSuites.forEach(it => {
336 traversalResults(suite, obj, breakOnError) {
337 if (suite.childSuites.length === 0 && suite.specs.length === 0) {
340 if (suite.specs.length > 0) {
341 for (const itItem of suite.specs) {
345 description: suite.description + '#' + itItem.description,
368 obj.duration += suite.duration;
370 if (suite.childSuites.length > 0) {
371 for (const suiteItem of suite.childSuites) {
378 async setSuiteResults(suite, error, coreContext) {
379 if (suite.childSuites.length === 0 && suite.specs.length === 0) {
382 if (suite.specs.length > 0) {
384 for (const specItem of suite.specs) {
395 if (suite.childSuites.length > 0) {
396 for (const suiteItem of suite.childSuites) {
403 let suiteService = this.coreContext.getDefaultService('suite');
423 traversalSuites(suite, obj, configService) {
424 if (suite.childSuites.length === 0 && suite.specs.length === 0) {
427 if (suite.specs.length > 0) {
429 for (const itItem of suite['specs']) {
430 if (!configService.filterDesc(suite.description, itItem.description, itItem.fi, null)) {
434 obj[suite.description] = itArray;
436 if (suite.childSuites.length > 0) {
438 for (const suiteItem of suite.childSuites) {
476 obj.childSuites.map(suite => {
477 if (suite.description != null && suite.description !== '') {
480 prefix = prefixStack.join('.') + '.' + suite.description;
482 prefix = suite.description;
484 prefixStack.push(suite.description);
489 suite.specs.map(spec => {
496 this.analyzeSuitesArray(prefixStack, suiteArray, skipSuiteArray, suite);
501 getAllChildSuiteNum(suite, specArray) {
502 if (suite.specs != null) {
503 suite.specs.forEach(spec => specArray.push(spec));
505 if (suite.childSuites != null) {
506 suite.childSuites.forEach(it => this.getAllChildSuiteNum(it, specArray));
607 const suiteService = coreContext.getDefaultService('suite');
615 const suiteService = coreContext.getDefaultService('suite');
618 coreContext.fireEvents('suite', 'suiteStart', this);
639 for (let suite in this.childSuites) {
644 suite.run(coreContext);
645 suiteService.setCurrentRunningSuite(suite);
650 coreContext.fireEvents('suite', 'suiteDone');
726 const suiteService = coreContext.getDefaultService('suite');
732 await coreContext.fireEvents('suite', 'suiteStart', this);
764 await coreContext.fireEvents('suite', 'suiteDone');
842 const suiteService = this.coreContext.getDefaultService('suite');
891 const suiteService = this.coreContext.getDefaultService('suite');
895 suiteService.suitesStack.map(suite => {
896 finalDesc = finalDesc + '.' + suite.description;
965 console.info(`${TAG}[suite params] ${JSON.stringify(suiteParams)}`);
990 console.info(`[suite params] ${JSON.stringify(suiteParams)}`);
1115 const currentRunningSuite = _this.coreContext.getDefaultService('suite').getCurrentRunningSuite();
1128 const currentRunningSuite = _this.coreContext.getDefaultService('suite').getCurrentRunningSuite();
1157 this.suiteService = this.coreContext.getDefaultService('suite');
1166 console.info(`${TAG}[suite start]${this.suiteService.getCurrentRunningSuite().description}`);
1179 let suite = this.suiteService.currentRunningSuite;
1181 suite.duration += spec.duration;
1195 let suite = this.suiteService.currentRunningSuite;
1196 let message = suite.hookError ? `, ${suite.hookError?.message}` : '';
1197 console.info(`[suite end] ${suite.description} consuming ${suite.duration} ms${message}`);