webdriverio-community / wdio-teamcity-reporter

Teamcity reporter for WebdriverIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test execution messages are not logged during run

oshulimov-ontarget opened this issue · comments

Since Webdriver.IO v5 and v6 there is not reporter output until all suites are finished.

After some investigation, I have figured out that the reason is this line of code in WDIOReporter:
this.outputStream = this.options.stdout || !this.options.logFile ? options.writeStream : _fs.default.createWriteStream(this.options.logFile);

Since reporter uses write() method and stdout flag is true looks like writeStream is missed.

Fixes webdriverio/webdriverio#5056
any chance of releasing this @sullenor ?

@adrian-brown it should, there is a PR for it already. Dependency can be switched until that to "wdio-teamcity-reporter": "git+https://github.com/oshulimov-ontarget/wdio-teamcity-reporter.git",

That's cool @oshulimov-ontarget can see this will work nicely. But rather take the official package, else I'm unwinding it later on :(

Hi guys, can you confirm that the issue is that the messages are only logged at the end of run and not while the tests are going?

That's right the current version doesn't update the counts as the test runs. only updates the final count after completion. broke since v5.

@adrian-brown @oshulimov-ontarget please try 2.2.0 version to see if this one works for you. Thanks

Didn't realise watching test counts in TC would be so satisfying to see again kudos @oshulimov-ontarget @sullenor