Protractor-html-reports配置了许多规格

时间:2015-10-14 22:23:19

标签: jasmine report protractor

我使用量角器-html-reports 并拥有下一个config.js



var HtmlReporter = require('protractor-html-screenshot-reporter');
var reporter=new HtmlReporter({
    baseDirectory: './protractor-result', // a location to store screen shots.
    docTitle: 'Protractor Demo Reporter',
    docName:    'protractor-demo-tests-report.html'
});
exports.config = {
  //can use beforeALL and afterALL
  //framework: 'jasmine2',
 
  // The address of a running selenium server.
  seleniumAddress: 'http://localhost:4444/wd/hub',
  //Can use baseUrl
  //baseUrl: 'https://',	
  // Capabilities to be passed to the webdriver instance.
  capabilities: {
    'browserName': 'chrome',
    //start many instances
     shardTestFiles: true,
     maxInstances: 1
     //count: 2
  },

  // Spec patterns are relative to the current working directly when
  // protractor is called.
  
specs: [
    'loginpage/*spec.js',
    'restorepass/*spec.js'
    'changepass/*spec.js',
    'adminuser/add adminuser/*spec.js'
  ],
  // Options to be passed to Jasmine-node.
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    isVerbose : true,
    includeStackTrace : true
  },
  onPrepare: function() {
    jasmine.getEnv().addReporter(reporter);
    }
};




如果你看到,我使用了很多规格。但报告只涉及最后的规格(adminuser / add adminuser / * spec.js)。 我需要报告我的所有描述规格。也许有人知道吗?

P.S抱歉我的英语不好)

0 个答案:

没有答案