jemishgopani / wdio-json-reporter

A WebdriverIO plugin. Report results in json format. http://webdriver.io
13 stars 32 forks source link

A report is created for every test files in the suite #10

Closed YannVerr closed 7 years ago

YannVerr commented 7 years ago

I have added json reporter to my my configuration file

reporters: ['dot', 'json'], reporterOptions: { outputDir: './reports', combined: true }

The problem is, for every test files that I have in my suite, a report will be created. When I run a suite with 50 test files, I will have 50 reports! I tried to combine them all together with the combined: true but it didn't work.

The expected behaviour would be to only have one report for the whole suite.

The issue is similar to https://github.com/webdriverio/wdio-spec-reporter/issues/6 but was never created here.

Bubbit commented 7 years ago

The current behaviour of the combined functionality is to result in one extra combined json, intended for CI purposes.

fijijavis commented 7 years ago

I think we should consider making this an either/or option. If combined is true then you only get the single file, If combined is false then you only get the individual files. I'm on vacation through next Wednesday 04/11 so I'll check it out when I get back.

YannVerr commented 7 years ago

I agree with you @fijijavis . It seems to be the way to go.

Thanks!

fijijavis commented 7 years ago

@ultima-forsan Finally got a chance to look at this. I am only getting a single combined file when I use

combined:true,
filename:wdio-results

I'm closing this unless you have specific steps to reproduce.