webdriverio-community / wdio-html-reporter

Fork of wdio-html-format-reporter
MIT License
18 stars 27 forks source link

Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. #47

Closed nam81285 closed 3 years ago

nam81285 commented 3 years ago

get an error when i use HtmlReporter in my webdriverio config.

Here are the versions:

"@rpii/wdio-html-reporter": "^6.2.0", "@wdio/allure-reporter": "^6.11.0", "@wdio/cli": "^6.12.1", "@wdio/cucumber-framework": "^6.11.1", "@wdio/dot-reporter": "^6.11.0", "@wdio/local-runner": "^6.12.1", "@wdio/selenium-standalone-service": "^6.12.1", "@wdio/spec-reporter": "^6.11.0", "@wdio/sync": "^6.11.0", "webdriverio": "6.12.1"

// ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, //binary: ./tools/chrome.exe, acceptInsecureCerts: true }],

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

//Hooks:

onPrepare: function (config, capabilities) {
    let reportAggregator = new ReportAggregator({
        outputDir: './tests/reports/output/html/',
        filename: 'master-report.html',
        reportTitle: 'Master Report',
        browserName : capabilities.browserName,
        collapseTests: true,
        // to use the template override option, can point to your own file in the test project:
        // templateFilename: path.resolve(__dirname, '../template/wdio-html-reporter-alt-template.hbs')
    });
    reportAggregator.clean() ;

    global.reportAggregator = reportAggregator;
},

onComplete: function(exitCode, config, capabilities, results) {
    (async () => {
        await global.reportAggregator.createReport();
    })();
},

Errors are:

[0-0] 2021-01-22T10:48:27.990Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters (https://webdriver.io/docs/customreporter.html) at Object.validateConfig (./node_modules/@wdio/config/build/utils.js:118:27)

[0-1] 2021-01-22T10:48:28.011Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (./node_modules/@wdio/runner/build/reporter.js:103:15)

rpii commented 3 years ago

I dont see this section of the config file: reporters: [ 'spec', // ['junit', { // outputDir: './reports/junit-reports/', // outputFileFormat: function(opts) { // optional // return results-${opts.cid}.${opts.capabilities}.xml // } // } // ], [HtmlReporter, { debug: false, outputDir: './reports/html-reports/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, LOG: logger, useOnAfterCommandForScreenshot: false

    }
    ]
],

On Fri, Jan 22, 2021 at 4:34 AM nam81285 notifications@github.com wrote:

get an error when i use HtmlReporter in my webdriverio config.

Here are the versions:

"@rpii/wdio-html-reporter": "^6.2.0", "@wdio/allure-reporter": "^6.11.0", "@wdio/cli": "^6.12.1", "@wdio/cucumber-framework": "^6.11.1", "@wdio/dot-reporter": "^6.11.0", "@wdio/local-runner": "^6.12.1", "@wdio/selenium-standalone-service": "^6.12.1", "@wdio/spec-reporter": "^6.11.0", "@wdio/sync": "^6.11.0",

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

//Hooks:

onPrepare: function (config, capabilities) { let reportAggregator = new ReportAggregator({ outputDir: './tests/reports/output/html/', filename: 'master-report.html', reportTitle: 'Master Report', browserName : capabilities.browserName, collapseTests: true, // to use the template override option, can point to your own file in the test project: // templateFilename: path.resolve(__dirname, '../template/wdio-html-reporter-alt-template.hbs') }); reportAggregator.clean() ;

global.reportAggregator = reportAggregator;

},

onComplete: function(exitCode, config, capabilities, results) { (async () => { await global.reportAggregator.createReport(); })(); },

Errors are:

[0-0] 2021-01-22T10:48:27.990Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (./node_modules/@wdio/config/build/utils.js:118:27)

[0-1] 2021-01-22T10:48:28.011Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (./node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEMHULPPVA72ECVBQDLS3FPZNANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

I have this defined..

nam81285 commented 3 years ago

Hi Rich,

I have the below defined in config file

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

Regards, Namita

On Fri, 22 Jan 2021, 16:54 Rich Peters, notifications@github.com wrote:

I dont see this section of the config file: reporters: [ 'spec', // ['junit', { // outputDir: './reports/junit-reports/', // outputFileFormat: function(opts) { // optional // return results-${opts.cid}.${opts.capabilities}.xml // } // } // ], [HtmlReporter, { debug: false, outputDir: './reports/html-reports/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, LOG: logger, useOnAfterCommandForScreenshot: false

} ] ],

On Fri, Jan 22, 2021 at 4:34 AM nam81285 notifications@github.com wrote:

get an error when i use HtmlReporter in my webdriverio config.

Here are the versions:

"@rpii/wdio-html-reporter": "^6.2.0", "@wdio/allure-reporter": "^6.11.0", "@wdio/cli": "^6.12.1", "@wdio/cucumber-framework": "^6.11.1", "@wdio/dot-reporter": "^6.11.0", "@wdio/local-runner": "^6.12.1", "@wdio/selenium-standalone-service": "^6.12.1", "@wdio/spec-reporter": "^6.11.0", "@wdio/sync": "^6.11.0",

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

//Hooks:

onPrepare: function (config, capabilities) { let reportAggregator = new ReportAggregator({ outputDir: './tests/reports/output/html/', filename: 'master-report.html', reportTitle: 'Master Report', browserName : capabilities.browserName, collapseTests: true, // to use the template override option, can point to your own file in the test project: // templateFilename: path.resolve(__dirname, '../template/wdio-html-reporter-alt-template.hbs') }); reportAggregator.clean() ;

global.reportAggregator = reportAggregator; },

onComplete: function(exitCode, config, capabilities, results) { (async () => { await global.reportAggregator.createReport(); })(); },

Errors are:

[0-0] 2021-01-22T10:48:27.990Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (./node_modules/@wdio/config/build/utils.js:118:27)

[0-1] 2021-01-22T10:48:28.011Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (./node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEABIEMHULPPVA72ECVBQDLS3FPZNANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-765550129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMATSOZDRU7FIIEWY73CXUDS3GUVXANCNFSM4WOLMZXA .

rpii commented 3 years ago

Still seems like the structure is not correct: exports.config = override(localConfig, instanceConfig, true); look at that config object in the debugger and make sure that reporters is a property of that object.

Rich

On Fri, Jan 22, 2021 at 9:19 AM nam81285 notifications@github.com wrote:

Hi Rich,

I have the below defined in config file

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

Regards, Namita

On Fri, 22 Jan 2021, 16:54 Rich Peters, notifications@github.com wrote:

I dont see this section of the config file: reporters: [ 'spec', // ['junit', { // outputDir: './reports/junit-reports/', // outputFileFormat: function(opts) { // optional // return results-${opts.cid}.${opts.capabilities}.xml // } // } // ], [HtmlReporter, { debug: false, outputDir: './reports/html-reports/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, LOG: logger, useOnAfterCommandForScreenshot: false

} ] ],

On Fri, Jan 22, 2021 at 4:34 AM nam81285 notifications@github.com wrote:

get an error when i use HtmlReporter in my webdriverio config.

Here are the versions:

"@rpii/wdio-html-reporter": "^6.2.0", "@wdio/allure-reporter": "^6.11.0", "@wdio/cli": "^6.12.1", "@wdio/cucumber-framework": "^6.11.1", "@wdio/dot-reporter": "^6.11.0", "@wdio/local-runner": "^6.12.1", "@wdio/selenium-standalone-service": "^6.12.1", "@wdio/spec-reporter": "^6.11.0", "@wdio/sync": "^6.11.0",

//Reporter config in wdio config file: let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); const log4j = require("log4js"); let localConfig = { reporters: ["spec", [HtmlReporter, { debug: true, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Test Report Title', showInBrowser: true, useOnAfterCommandForScreenshot: false, LOG: log4j.getLogger("default") } ] ], }; exports.config = override(localConfig, instanceConfig, true);

//Hooks:

onPrepare: function (config, capabilities) { let reportAggregator = new ReportAggregator({ outputDir: './tests/reports/output/html/', filename: 'master-report.html', reportTitle: 'Master Report', browserName : capabilities.browserName, collapseTests: true, // to use the template override option, can point to your own file in the test project: // templateFilename: path.resolve(__dirname, '../template/wdio-html-reporter-alt-template.hbs') }); reportAggregator.clean() ;

global.reportAggregator = reportAggregator; },

onComplete: function(exitCode, config, capabilities, results) { (async () => { await global.reportAggregator.createReport(); })(); },

Errors are:

[0-0] 2021-01-22T10:48:27.990Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (./node_modules/@wdio/config/build/utils.js:118:27)

[0-1] 2021-01-22T10:48:28.011Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (./node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEMHULPPVA72ECVBQDLS3FPZNANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-765550129 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AMATSOZDRU7FIIEWY73CXUDS3GUVXANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-765564752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEL3ZEDB5HBXO6MCT6DS3GXP5ANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/**/*.feature : ./tests/features/featureFiles/**/${argv.ff}.feature; exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions/*/.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

The Above Console.log is giving below result for the reporter part:- --------------------------------------------------------------------- exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/**/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber',

reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ],

cucumberOpts: { require: [ './tests/features/step_definitions/*/.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters (https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

rpii commented 3 years ago

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 notifications@github.com wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

The Above Console.log is giving below result for the reporter part:- --------------------------------------------------------------------- exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Hi Rich,

I am not using any external compiler. I mean nothing like babel or typescript. Is it mandatory to use anyone of these?

If its mandatory can u help to configure it?

Also to let u know I use gulp to execute my script.

Can it be a version issue? I mean I have all the latest npm package versions as per wdio v 6.2

As the error throwing from the below :

I really want to resolve it. I like the report a lot as it can also be converter to pdf.

Regards, Namita

On Mon, 25 Jan 2021, 18:27 Rich Peters, notifications@github.com wrote:

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 notifications@github.com wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

The Above Console.log is giving below result for the reporter part:- --------------------------------------------------------------------- exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767020086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMATSO3X7MYTQSO53E6CWTTS3WZZFANCNFSM4WOLMZXA .

rpii commented 3 years ago

does it work if you simplify the reports section? just put in spec?

Rich

On Mon, Jan 25, 2021 at 10:38 AM nam81285 notifications@github.com wrote:

Hi Rich,

I am not using any external compiler. I mean nothing like babel or typescript. Is it mandatory to use anyone of these?

If its mandatory can u help to configure it?

Also to let u know I use gulp to execute my script.

Can it be a version issue? I mean I have all the latest npm package versions as per wdio v 6.2

As the error throwing from the below :

I really want to resolve it. I like the report a lot as it can also be converter to pdf.

Regards, Namita

On Mon, 25 Jan 2021, 18:27 Rich Peters, notifications@github.com wrote:

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 notifications@github.com wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

The Above Console.log is giving below result for the reporter part:- --------------------------------------------------------------------- exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767020086 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AMATSO3X7MYTQSO53E6CWTTS3WZZFANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767026614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEOMACIIN36EENZOFMTS3W27HANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Hi Rich,

I have tried other reports like timeline, spec, dot, allure repot, json and cucumber-json (with multiple- cucumber-reporter for html). All of these works together and individually fine for me.

But HTML reporter looks simple and it has pdf converter so I want this to work.

Thanks, Namita

On Mon, 25 Jan 2021, 20:43 Rich Peters, notifications@github.com wrote:

does it work if you simplify the reports section? just put in spec?

Rich

On Mon, Jan 25, 2021 at 10:38 AM nam81285 notifications@github.com wrote:

Hi Rich,

I am not using any external compiler. I mean nothing like babel or typescript. Is it mandatory to use anyone of these?

If its mandatory can u help to configure it?

Also to let u know I use gulp to execute my script.

Can it be a version issue? I mean I have all the latest npm package versions as per wdio v 6.2

As the error throwing from the below :

  • @wdio/reporter <

https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter

- A WebdriverIO utility to help reporting all events

I really want to resolve it. I like the report a lot as it can also be converter to pdf.

Regards, Namita

On Mon, 25 Jan 2021, 18:27 Rich Peters, notifications@github.com wrote:

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 notifications@github.com wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

*The Above Console.log is giving below result for the reporter part:-

---------------------------------------------------------------------* exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767020086

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AMATSO3X7MYTQSO53E6CWTTS3WZZFANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767026614 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEABIEOMACIIN36EENZOFMTS3W27HANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767100433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMATSOZJNTOCAY7MNZ3DRGTS3XJWBANCNFSM4WOLMZXA .

rpii commented 3 years ago

So I am not sure what is failing. it works for most folks. can you send me your config file?

Rich

On Mon, Jan 25, 2021 at 2:16 PM nam81285 notifications@github.com wrote:

Hi Rich,

I have tried other reports like timeline, spec, dot, allure repot, json and cucumber-json (with multiple- cucumber-reporter for html). All of these works together and individually fine for me.

But HTML reporter looks simple and it has pdf converter so I want this to work.

Thanks, Namita

On Mon, 25 Jan 2021, 20:43 Rich Peters, notifications@github.com wrote:

does it work if you simplify the reports section? just put in spec?

Rich

On Mon, Jan 25, 2021 at 10:38 AM nam81285 notifications@github.com wrote:

Hi Rich,

I am not using any external compiler. I mean nothing like babel or typescript. Is it mandatory to use anyone of these?

If its mandatory can u help to configure it?

Also to let u know I use gulp to execute my script.

Can it be a version issue? I mean I have all the latest npm package versions as per wdio v 6.2

As the error throwing from the below :

  • @wdio/reporter <

https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter

- A WebdriverIO utility to help reporting all events

  • @wdio/config <

https://github.com/webdriverio/webdriverio/blob/main/packages/wdio-config

- A helper utility to parse and validate WebdriverIO options

I really want to resolve it. I like the report a lot as it can also be converter to pdf.

Regards, Namita

On Mon, 25 Jan 2021, 18:27 Rich Peters, notifications@github.com wrote:

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 notifications@github.com wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

*The Above Console.log is giving below result for the reporter part:-

---------------------------------------------------------------------* exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767020086

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AMATSO3X7MYTQSO53E6CWTTS3WZZFANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767026614

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEOMACIIN36EENZOFMTS3W27HANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767100433 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AMATSOZJNTOCAY7MNZ3DRGTS3XJWBANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767148889, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEMPGWWPVF2277YPF4LS3XUQVANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Hi Rich,

Below is my config file goes by name local.conf.js. I am calling config file in my gulp task.


let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles/**/${argv.ff}.feature; exports.config = { runner: "local", // Patterns to exclude.

specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false,

outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions/*/.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, };


Do u have any sample project with wdio v6+Cucumber v6+ HTML Reporter for me to refer?

Regards, Namita

On Tue, 26 Jan 2021, 02:18 Rich Peters, notifications@github.com wrote:

So I am not sure what is failing. it works for most folks. can you send me your config file?

Rich

On Mon, Jan 25, 2021 at 2:16 PM nam81285 notifications@github.com wrote:

Hi Rich,

I have tried other reports like timeline, spec, dot, allure repot, json and cucumber-json (with multiple- cucumber-reporter for html). All of these works together and individually fine for me.

But HTML reporter looks simple and it has pdf converter so I want this to work.

Thanks, Namita

On Mon, 25 Jan 2021, 20:43 Rich Peters, notifications@github.com wrote:

does it work if you simplify the reports section? just put in spec?

Rich

On Mon, Jan 25, 2021 at 10:38 AM nam81285 notifications@github.com wrote:

Hi Rich,

I am not using any external compiler. I mean nothing like babel or typescript. Is it mandatory to use anyone of these?

If its mandatory can u help to configure it?

Also to let u know I use gulp to execute my script.

Can it be a version issue? I mean I have all the latest npm package versions as per wdio v 6.2

As the error throwing from the below :

  • @wdio/reporter <

https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter

- A WebdriverIO utility to help reporting all events

  • @wdio/config <

https://github.com/webdriverio/webdriverio/blob/main/packages/wdio-config

- A helper utility to parse and validate WebdriverIO options

I really want to resolve it. I like the report a lot as it can also be converter to pdf.

Regards, Namita

On Mon, 25 Jan 2021, 18:27 Rich Peters, notifications@github.com wrote:

It looks good. is there a chance its a javascript execution issue? are you running this through babel?

Rich

On Mon, Jan 25, 2021 at 9:43 AM nam81285 <notifications@github.com

wrote:

I tried the below method as well:

My Complete config file:- --------------------------------- let {ReportAggregator, HtmlReporter} = require('@rpii/wdio-html-reporter'); process.env.ff = (argv.ff) ? argv.ff : process.env.ff; let featureFilePath = process.env.ff === "undefined" ? ./tests/features/featureFiles/*/.feature : ./tests/features/featureFiles//${argv.ff}.feature; //let localConfig = { exports.config = { runner: "local", // Patterns to exclude. specs: [ featureFilePath ], // ============ // Capabilities // ============ //Defined a headless browser only capabilities: [{ maxInstances: 0, // // browserName: 'chrome', "goog:chromeOptions": { headless: true }, acceptInsecureCerts: true, }], // // =================== // Test Configurations // =================== logLevel: "error", waitforTimeout: 10000, connectionRetryTimeout: 120000, // Default request retries count connectionRetryCount: 3, // Test runner services framework: "cucumber", reporters: ['spec', [HtmlReporter, { debug: false, outputDir: './tests/reports/output/html/', filename: 'report.html', reportTitle: 'Web Test Report', showInBrowser: false, useOnAfterCommandForScreenshot: false }] ], // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // <string[]> (file/dir) require files before executing features require: ["./tests/features/step_definitions//*.steps.js"], strict: true, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: "", // timeout for step definitions timeout: 60000, }, }; console.log ("exportsConfig :- ",exports.config)

*The Above Console.log is giving below result for the reporter part:-

---------------------------------------------------------------------* exportsConfig :- { runner: 'local', specs: [ './tests/features/featureFiles/

/pep-post-passingHeader.feature' ], capabilities: [ { maxInstances: 0, browserName: 'chrome', 'goog:chromeOptions': [Object], acceptInsecureCerts: true } ], logLevel: 'error', waitforTimeout: 10000, connectionRetryTimeout: 120000, connectionRetryCount: 3, framework: 'cucumber', reporters: [ 'spec', [ [class HtmlReporter extends WDIOReporter], [Object] ] ], cucumberOpts: { require: [ './tests/features/step_definitions//*.steps.js' ], strict: true, tagExpression: '', timeout: 60000 }, }

Error message is still the same:-

[0-0] 2021-01-25T17:35:44.554Z ERROR @wdio/runner: Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters ( https://webdriver.io/docs/customreporter.html) at Object.validateConfig (/node_modules/@wdio/config/build/utils.js:118:27)

[0-0] 2021-01-25T17:35:44.567Z ERROR @wdio/local-runner: Failed launching test session: Error: Invalid reporters config at BaseReporter.initReporter (/node_modules/@wdio/runner/build/reporter.js:103:15)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-766991655

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEJAUIQNQPS4CJHO7GDS3WUQXANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767020086

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AMATSO3X7MYTQSO53E6CWTTS3WZZFANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767026614

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEABIEOMACIIN36EENZOFMTS3W27HANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767100433

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AMATSOZJNTOCAY7MNZ3DRGTS3XJWBANCNFSM4WOLMZXA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767148889 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEABIEMPGWWPVF2277YPF4LS3XUQVANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767239131, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMATSO2VRLVWQKCVWCWXUEDS3YQ5TANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Hi @rpii, Do u think babel or typescript is mandatory to generate this report? Also do I need any mandatory services or Packages defined in my config and package.json respectively?

rpii commented 3 years ago

I have a cucumber sample, but I dont want it to be public. I could send it to you as a zip

Rich

On Tue, Jan 26, 2021 at 6:38 AM nam81285 notifications@github.com wrote:

Hi @rpii https://github.com/rpii, Do u think babel or typescript is mandatory to generate this report? Also do I need any mandatory services or Packages defined in my config and package.json respectively?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767585761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEJ7UXJGH4P2WCMON4LS33HTTANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Thanks @rpii (Rich). I figured out the issue I guess. Need you help to understand though. does this report work with gulp tasks? I mean in my framework i use gulp command to execute the cases.. below is a sample:-

gulp.task('run-api', () => { return gulp.src('tests/conf/wdio.conf.js').pipe(webdriver({ wdioBin: path.join(__dirname, 'node_modules', '.bin', cmd) })); });

When I run the wdio.conf.js directly without gulp task (command- npx wdio ./tests/conf/wdio.conf.js) the report is getting generated but when i use gulp command (gulp run-api ) its giving the reporter error.

Could you help me with resolving this?

rpii commented 3 years ago

you have to use wdio to run it, as in the last example. it sets up the environment

On Tue, Jan 26, 2021 at 9:21 AM nam81285 notifications@github.com wrote:

Thanks @rpii https://github.com/rpii (Rich). I figured out the issue I guess. Need you help to understand though. does this report work with gulp tasks? I mean in my framework i use gulp command to execute the cases.. below is a sample:-

gulp.task('run-api', () => { return gulp.src('tests/conf/wdio.conf.js').pipe(webdriver({ wdioBin: path.join(__dirname, 'node_modules', '.bin', cmd) })); });

When I run the wdio.conf.js directly without gulp task (command- npx wdio ./tests/conf/wdio.conf.js) the report is getting generated but when i use gulp command (gulp run-api ) its giving the reporter error.

Could you help me with resolving this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767695994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEJBIAV35JFHQKFAZGTS332U7ANCNFSM4WOLMZXA .

nam81285 commented 3 years ago

Thanks I also figured that out.

So I cannot use this report. 😒

Thanks for your help and time.

Regards, Namita rath

On Tue, 26 Jan 2021, 17:24 Rich Peters, notifications@github.com wrote:

you have to use wdio to run it, as in the last example. it sets up the environment

On Tue, Jan 26, 2021 at 9:21 AM nam81285 notifications@github.com wrote:

Thanks @rpii https://github.com/rpii (Rich). I figured out the issue I guess. Need you help to understand though. does this report work with gulp tasks? I mean in my framework i use gulp command to execute the cases.. below is a sample:-

gulp.task('run-api', () => { return gulp.src('tests/conf/wdio.conf.js').pipe(webdriver({ wdioBin: path.join(__dirname, 'node_modules', '.bin', cmd) })); });

When I run the wdio.conf.js directly without gulp task (command- npx wdio ./tests/conf/wdio.conf.js) the report is getting generated but when i use gulp command (gulp run-api ) its giving the reporter error.

Could you help me with resolving this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767695994 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEABIEJBIAV35JFHQKFAZGTS332U7ANCNFSM4WOLMZXA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/47#issuecomment-767698358, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMATSOZACGBPK6AAK44Z753S333D7ANCNFSM4WOLMZXA .

rpii commented 3 years ago

obe