2

私はAngularJS Webアプリケーション用のe2eテストをたくさん用意しています。これは私の現在のprotractor.config.jsファイルです:角度計で1つ以上のe2eテストを除外する方法

// __dirname retuns a path of this particular config file 
// assuming that protractor.conf.js is in 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'); 
     }; 
    } 
}; 

どのように私は1つ以上のテストが.featureファイルに含まれて除外することができますか?我々はXIT機能を使用し、当社の分度器試験で

答えて

2

:あなたは準備が整うまで

xit('should test something', function() { 
}).pend('Will be implemented later'); 

これはテストを保留し、しかし、我々は、この機能が使用可能かどうかはので、私は思ったんだけどjasmine2使用していますか?私が知る限り、configファイル内のテストを除外することはできません。ディレクトリをテストしないようにテストを隠すだけで、あなたの設定には含まれません。

関連する問題