How do I run automation tests in headless mode with Mocha.js on LambdaTest cloud?

How do I run automation tests in headless mode with Mocha.js on LambdaTest cloud?

Hey Brettm,

If you want to run automation tests in the headless mode with Mocha.js testing on Lambdatest, ou can refer to the sample test repo:

In conf/single.conf.js file, you need to update your capabilities. You need to set the headless capability to run a browser in headless mode. The capabilities would look something like this:

exports.capabilities = {
        'build': 'Mocha-Selenium-Sample', //Build name
        'name': 'Your Test Name', // Test name
        'platform':'Windows 10', // OS name
        'browserName': 'chrome', // Browser name
        'version': 'latest', // Browser version
        'visual': false,  // To take step by step screenshot
        'network':false,  // To capture network Logs
        'console':false, // To capture console logs.
        'tunnel': false, // If you want to run the localhost than change it to true
        'headless': true
  }
};

Here’s the GitHub repo for the same: Mocha.js Testing On An Online Automation Grid | LambdaTest