Kenzitron / protractor-jasmine2-html-reporter

HTML reporter for Jasmine2 and Protractor
32 stars 53 forks source link

protractor-jasmine2-html-reporter doesn't create html report #60

Closed dineshprodapt closed 6 years ago

dineshprodapt commented 6 years ago

I have the following configuration in protractor config.js, but it is generating only the screenshots in the specified folder not the HTML report.I have gone through the steps followed here

https://www.npmjs.com/package/protractor-jasmine2-html-reporter

var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); 

onPrepare() {

    jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
            savePath: './test/reports/',
            fileName: 'MyReportName'
        }));
  }

Can someone specify where I'm missing or is there any version specific issue?

I'm using Protractor Version 5.2.0, Node v6.11.2

dineshprodapt commented 6 years ago

I have issues with spec file which is causing the html report generation.

If we didn't provide expect and finish the it function, html report is not generating.

Always expect is mandatory