Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebDriver.io no console output

I am using the following stack to run several tests:

NodeJs
Selenium standalone
geckodriver thought I use chrome
webdriver.io
mocha 
chai

So after all my first_test.js is:

describe ('Website url test ', () => {
  it('should have a title ', () => {
    browser.call((done) => {
      browser.url('http://webdriver.io');
      var title = browser.getTitle();
      expect(title).to.be.equal('WebdriverIO - WebDriver bindings for Node.js')
      done();
    })
  })

And the output in the console is:Incorrect console output

enter image description here

But it should be like this for the passing tests as well: Correct console output

enter image description here

Is something in Mocha config that I should change so that the passing tests would produce the same optical outcome?

like image 893
apiMan Avatar asked Jan 29 '23 19:01

apiMan


1 Answers

This behavior was caused by the reporter chosen (in my case dot).

I changed to spec and I have a very verbose output now.

like image 110
apiMan Avatar answered Feb 03 '23 08:02

apiMan