K
K
KiT2019-03-24 18:40:15
JavaScript
KiT, 2019-03-24 18:40:15

How to force Mocha to include tests that failed on hooks in the final report?

I am testing WEB-application using webdriverio+mocha (JS). Faced the following problem:
If the test fails on "before.." or "after..." hooks, then all tests in this spec-file are skipped and (worst of all) do not get into the final report in any form. Thus, in almost any run there is an indefinite number of failed test cases, even with a completely green report.
Has anyone else experienced this? Are there ready-made solutions or will it be necessary to cut a crutch?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question