question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load helper Mochawesome from module './helper/Mochawesome' error msg

See original GitHub issue

I’ve received this error trying to run mochawesome reporter (odeceptjs run --reporter mochawesome) capture. I’m using VSCode as IDE. I followed reports guide from CodeceptJS site, so my codecept.json looks like this:

{
  "output": "./output",
  "helpers": {
    "Mochawesome": {
      "uniqueScreenshotNames": "true"
    },
    "WebDriverIO": {
      "url": "",
      "browser": "chrome",
      "windowSize": "maximize",
      "restart": true,
      "smartWait": 15000
    }
  },
  "include": {
    "I": "./steps_file.js",
    "basePage": "./base/BasePage.js"
  },
  "mocha": {
    "reporterOptions": {
      "reportDir": "output"
    }
  },
  "bootstrap": false,
  "teardown": null,
  "hooks": [],
  "tests": "./test/DashBoardTest.js",
  "timeout": 10000,
  "name": ""
}

Why did I receive that message above? Am I missing some configuration?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
APshenkincommented, Sep 20, 2017

@luisgzvs @guruparanun output folders for screenshots and html report should be same. So try to modify your configs this way:

{
  "output": "./output",
  "helpers": {
    "Mochawesome": {
      "uniqueScreenshotNames": "true" // uniqueScreenshotNames in Mochawesome helper
    },
    "WebDriverIO": {
      "url": "...",
      "browser": "chrome",
      "windowSize": "maximize",
      "restart": true,
      "smartWait": 15000, 
      "uniqueScreenshotNames": "true" // uniqueScreenshotNames in selenium helper
    }
  },
  "include": {
    "I": "./steps_file.js",
    // other pages
  },
  "mocha": {
    "reporterOptions": {
      "reportDir": "./output"
    }
  },
 // other options
}
0reactions
guruparanuncommented, Sep 21, 2017

Thank you very much, @APshenkin now screenshot is show on html report too. Thank 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
I've received this error trying to run mochawesome reporter (odeceptjs run --reporter ... Could not load helper Mochawesome from module '.
Read more >
mochawesome - npm
Mochawesome ships with an addContext helper method that can be used to associate additional information with a test. This information will then ...
Read more >
mochawesome/general - Gitter
js --reporter mochawesome' command. I am getting some warning message - 'Warning: Could not find any test files matching pattern: mochawesome' Anyone can...
Read more >
Using Mochawesome Reporter with Cypress
Solution: mochawesome-merge can be used to merge these reports and then generate one HTML report for all your cypress tests.
Read more >
Mochawesome report is not opening in browser?
json and mochawesome.html. But unable to open the mochawesome.html file in browser. Kindly help. Is there any other module to see the report ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found