Nightwatch: No screenshots with Mocha runner

Created on 11 Feb 2019  路  6Comments  路  Source: nightwatchjs/nightwatch

There seems to be a problem with generating screenshots with the Mocha option in the test_runner.

I have re-created the issue here: https://github.com/robhuzzey/mochanightwatch

As you can see when running the test with mocha as the test_runner option we get no screenshots however if you modify the code to uncomment the default runner test & comment out test_runner option you can see screenshots work as expected.

Can anybody shed some light on a parameter I may be missing to enable screenshots to work with Mocha test runner please?

bug help wanted mocha stale

Most helpful comment

Looks like a bug, thanks for reporting.

All 6 comments

Looks like a bug, thanks for reporting.

This issue has been automatically marked as stale because it has not had any recent activity.
If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.

I have this issue in 1.0.18. It worked fine before switching to the builtin Mocha.

      screenshots: {
        enabled: true,
        on_failure: true,
        on_error: true,
        path: 'tests_output/screenshots'
      },

@beatfactor , does it make sense to re-open this? I don't believe it has been addressed.

Following, would love to see this getting fixed!

This issue has been automatically marked as stale because it has not had any recent activity.
If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sgleonardoopitz picture sgleonardoopitz  路  3Comments

manjero picture manjero  路  4Comments

antogyn picture antogyn  路  4Comments

Pieras2 picture Pieras2  路  3Comments

MateuszJeziorski picture MateuszJeziorski  路  3Comments