Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Auto open with Nightwatch Mocha #44

Closed
Bobbikk opened this issue Apr 13, 2016 · 1 comment
Closed

Enhancement: Auto open with Nightwatch Mocha #44

Bobbikk opened this issue Apr 13, 2016 · 1 comment

Comments

@Bobbikk
Copy link

Bobbikk commented Apr 13, 2016

Versions:

Windows 8
Nightwatch: 0.8.18
Mocha-nightwatch: 2.2.7
Mochawesome 1.3.3

Could an additional option to auto-open the HTML report be added to the config? This could be achieved with the use of Open in the saveToFile callback:

eg. in mochawesome.js - Line 112

saveToFile(stringify(obj, null, 2), config.reportJsonFile, function(){});
        saveToFile(templates.mochawesome(obj), config.reportHtmlFile, function() {
          console.log('\n[' + chalk.gray('mochawesome') + '] Report saved to ' + config.reportHtmlFile + '\n\n');

if(config.openReport){
          open(config.reportHtmlFile);
}        
});

@adamgruber
Copy link
Owner

Added this option to 1.3.4. Thanks for the suggestion and let me know if you run into any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants