Filtering
This configuration property allows you to filter the part of your code that will be executed. This filtering can be done at several levels.
Options
Name | Type | Description |
---|---|---|
features | string[] | You can filter the feature(s) you want to be executed by specifying the feature(s) name. |
featuresTags | string[] | You can filter the feature(s) you want to be executed by specifying the feature(s) tag name that you have specified inside your feature file. |
scenarios | string[] | You can filter the scenario(s) you want to be executed by specifying the scenarios(s) name. |
scenariostags | string[] | You can filter the scenario(s) you want to be executed by specifying the scenario(s) tag name that you have specified inside your feature file. |
steps | string[] | You can filter the step(s) you want to be executed by specifying the scenarios(s) name. |
stepsTags | string[] | You can filter the step(s) you want to be executed by specifying the scenario(s) tag name that you have specified inside your feature file. |
glob | string[] | You can filter the feature(s) files or group of feature file you want to be executed by specifying the feature(s)name. |
import { Configuration,FeatureRunInfo,ScenarioRunInfo,StepRunInfo } from "test-maker";
const config:Configuration= {
filtering:{
function:(a:{
feature?: FeatureRunInfo | undefined;
scenario?: ScenarioRunInfo | undefined;
step?: StepRunInfo | undefined;
})=>{
}
}
}
Basic
Inside configuration file
filtering:{
features:[
`feature-1`,
// .
// .
// .
`feature-x`
]
}