webdriverio: reporter "wdio-spec-reporter" is not installed
Following the 4.x I get this error while trying to use the spec reporter. In addition, this module is not yet published so there is no way to install it to make this work.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (7 by maintainers)
I think some people find the spec reporter useful for failures because that test description provides context. With cucumber reusing step definitions, I often find myself counting dots to determine which scenario failed that step definition.
The value I’m trying to communicate is not just how many failed but in what context, and dot reporting makes that difficult.
I did a quick custom report you can use in the meanwhile https://gist.github.com/jurgob/c86920043f0a7c766b79eb63562e15fe
just add save it in a file called e2eReport.js and add in your wdio.conf.js file the following lines:
var e2eReport = require(‘./e2eReport.js’);
Wow you are FAST. I was literally about to post this comment that it might be a local/global node module issue and I was investigating. Keep up the great work!
UPDATE: I had to also install wdio:
or:
Then it worked.
@zmorris if you call
wdiofrom the terminal it uses the global installed webdriverio package. If you install your packages like this you need to use the local installed wdio version:@dheerajbhaskar we already have published a dot reporter
@dcypherthis I see. Well it is one of the next things I will work on
Because the only difference between the dot and spec reporter is that you see the test descriptions instead of a dot. That’s it. Failing tests will be displayed the same way like in the dot reporter.