I have a collection of end-to-end tests for my AngularJS web application. Here is the configuration in my current protractor.config.js file:
// __dirname fetches the path of this specific config file
// assuming that the protractor.conf.js is located at the root of the project
var basePath = __dirname;
exports.config = {
specs: [
"./Pages/ChartPicker/*.feature",
"./Pages/Chart/*.feature"
],
capabilities: {
"browserName": "chrome"
},
framework : "cucumber",
getPageTimeout : 20000,
allScriptsTimeout : 25000,
params: {
env : "env-not-set",
"env-dev" : {
baseUrl : "http://localhost:9001/"
},
"env-stage" : {
baseUrl : "http://localhost:9020/"
}
},
onPrepare: function () {
// "relativePath" - path, relative to "basePath" variable
global.requirePO = function (relativePath) {
return require(basePath + '\\PageObjects\\' + relativePath + '.po.js');
};
global.requireHelper = function (relativePath) {
return require(basePath + '\\UtilityJS\\' + relativePath + '.js');
};
}
};
Is there a way to exclude specific tests from being run that are mentioned in the .feature files?