Lines Matching refs:spec

383             const specService = coreContext.getDefaultService('spec');
391 await coreContext.fireEvents('spec', 'specStart', specItem);
392 await coreContext.fireEvents('spec', 'specDone', specItem);
405 const specService = this.coreContext.getDefaultService('spec');
489 suite.specs.map(spec => {
490 let it = { 'itName': spec.description };
491 spec.isSkip ? skipTemp[prefix].push(it) : temp[prefix].push(it);
503 suite.specs.forEach(spec => specArray.push(spec));
591 pushSpec(spec) {
592 this.specs.push(spec);
608 const specService = coreContext.getDefaultService('spec');
628 for (let spec in this.specs) {
634 spec.run(coreContext);
681 const specService = coreContext.getDefaultService('spec');
690 await coreContext.fireEvents('spec', 'specStart', specItem);
708 await coreContext.fireEvents('spec', 'specDone', specItem);
727 const specService = coreContext.getDefaultService('spec');
811 setCurrentRunningSpec(spec) {
812 this.currentRunningSpec = spec;
855 const spec = new SpecService.Spec({ description: desc, fi: filter, fn: processedFunc });
857 spec.isSkip = true;
858 spec.skipReason = this.specSkipReason;
861 if (configService.runSkipped === 'skipped' && !spec.isSkip) {
862 console.info(`${TAG} runSkipped is skipped , just run xit, don't run it: ${spec.description}`);
865 if (suiteService.getCurrentRunningSuite().isSkip && !spec.isSkip) {
872 suiteService.getCurrentRunningSuite().pushSpec(spec);
881 suiteService.getCurrentRunningSuite().pushSpec(spec);
885 suiteService.getCurrentRunningSuite().pushSpec(spec);
900 console.info(`${TAG} runSkipped spec: ${desc}`);
902 console.info(reason == null ? `${TAG} skip spec: ${desc}` : `${TAG} skip spec: ${desc}, and the reason is ${reason}`);
906 console.info(reason == null ? `${TAG} skip spec: ${desc}` : `${TAG} skip spec: ${desc}, and the reason is ${reason}`);
954 const specService = coreContext.getDefaultService('spec');
956 coreContext.fireEvents('spec', 'specStart', this);
966 console.info(`${TAG}[spec params] ${JSON.stringify(specParams)}`);
980 coreContext.fireEvents('spec', 'specDone', this);
991 console.info(`[spec params] ${JSON.stringify(specParams)}`);
1007 const specService = coreContext.getDefaultService('spec');
1113 const specService = _this.coreContext.getDefaultService('spec');
1125 const specService = _this.coreContext.getDefaultService('spec');
1156 this.specService = this.coreContext.getDefaultService('spec');
1172 let spec = this.specService.currentRunningSpec;
1173 spec.startTime = await SysTestKit.getRealTime();
1178 let spec = this.specService.currentRunningSpec;
1180 spec.duration = await SysTestKit.getRealTime() - spec.startTime;
1181 suite.duration += spec.duration;
1182 if (spec.error) {
1183 this.formatPrint('error', spec.description + ' ; consuming ' + spec.duration + 'ms');
1184 this.formatPrint('errorDetail', spec.error);
1185 } else if (spec.fail) {
1186 this.formatPrint('fail', spec.description + ' ; consuming ' + spec.duration + 'ms');
1187 this.formatPrint('failDetail', spec.fail?.message);
1189 this.formatPrint('pass', spec.description + ' ; consuming ' + spec.duration + 'ms');