abhishekswain / jasmine2-protractor-utils

Utilities for Protractor with jasmine2 [HTML Reports, Screenshot, Browser Console log]
MIT License
18 stars 31 forks source link

HTML Reporter works only in case, when protrator tests are specified via suites #6

Open serhiy-yevtushenko opened 8 years ago

serhiy-yevtushenko commented 8 years ago

If tests are being specified via specs in Protractor.conf.js (without using suites), then HTML report is not correctly generated (as it assumes only the usage of suites)

abhishekswain commented 8 years ago

Please update the npm module to 1.2.5 and ensure that onPrepare block returns a Promise. e.g:

onPrepare: function () {

        // returning the promise makes protractor wait for the reporter config before executing tests
        return global.browser.getProcessedConfig().then(function (config) {

        });
        }