diff --git a/README.md b/README.md index 3991628..083f5dc 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,11 @@ For webdriver.io: ``` framework: webdriverio ``` +For nightwatch.js: +``` +framework: nightwatchjs +``` + Use 'multiReport = true' for parallel test execution (adding timestamp in report file name), or change report name in tests or hooks for shardTestFiles option: diff --git a/changelog.md b/changelog.md index c18c52d..19b592c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ #Changelog +###1.7.3 +add ability to take screenshots for nightwatch js framework + ###1.7.2 add ability to take screenshots for webdriver.io framework diff --git a/lib/reportGenerator.js b/lib/reportGenerator.js index 34da080..ddb925d 100644 --- a/lib/reportGenerator.js +++ b/lib/reportGenerator.js @@ -106,6 +106,7 @@ function saveScreenshotToFile(outFile, config) { page.screenshot({path: outFile}); break; case "webdriverio": + case "nightwatchjs": browser.saveScreenshot(outFile); break; case "cypress": diff --git a/package.json b/package.json index ddcb7e4..8da3817 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mochawesome-screenshots", - "version": "1.7.2", + "version": "1.7.3", "description": "A Gorgeous HTML/CSS Reporter for Mocha.js", "scripts": { "test": "gulp build" @@ -18,6 +18,7 @@ "cypress", "playwright", "puppeteer", + "nightwatch", "webdriverio", "screenshot", "reporter",