File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11import fs from "fs" ;
22
3+ import { inspect } from "node:util" ;
4+
35import { IdGenerator , SourceMediaType } from "@cucumber/messages" ;
46
57import parse from "@cucumber/tag-expressions" ;
@@ -47,6 +49,8 @@ import { memoize } from "./helpers/memoize";
4749
4850import { assertNever } from "./helpers/assertions" ;
4951
52+ import debug from "./helpers/debug" ;
53+
5054const resolve = memoize ( origResolve ) ;
5155
5256export type AddOptions = {
@@ -133,6 +137,8 @@ export async function addCucumberPreprocessorPlugin(
133137 const tags = getTags ( config . env ) ;
134138
135139 if ( tags !== null && preprocessor . filterSpecs ) {
140+ debug ( `Filtering specs using expression ${ inspect ( tags ) } ` ) ;
141+
136142 const node = parse ( tags ) ;
137143
138144 const testFiles = getTestFiles (
@@ -176,6 +182,8 @@ export async function addCucumberPreprocessorPlugin(
176182 ) ;
177183 } ) ;
178184
185+ debug ( `Resolved specs ${ inspect ( testFiles ) } ` ) ;
186+
179187 const propertyName = "specPattern" in config ? "specPattern" : "testFiles" ;
180188
181189 /**
You can’t perform that action at this time.
0 commit comments