abhishekswain / jasmine2-protractor-utils

Utilities for Protractor with jasmine2 [HTML Reports, Screenshot, Browser Console log]
MIT License
18 stars 31 forks source link

Spurious errors when taking only screenshots #22

Open lrem opened 7 years ago

lrem commented 7 years ago

When disabling html report, I get the error:

[07:42:48] I/plugins -       Fail:  jasmine2-protractor-utils Runtime 
[07:42:48] E/plugins -      Failure during postResults: ENOENT: no such file or directory, scandir './reports/htmlReports'
[07:42:48] E/plugins -      Error: ENOENT: no such file or directory, scandir './reports/htmlReports'
            at Object.fs.readdirSync (fs.js:910:18)
            at /home/travis/build/lrem/ladders/web/node_modules/jasmine2-protractor-utils/index.js:344:24
            at ManagedPromise.invokeCallback_ (/home/travis/build/lrem/ladders/web/node_modules/selenium-webdriver/lib/promise.js:1366:14)
            at TaskQueue.execute_ (/home/travis/build/lrem/ladders/web/node_modules/selenium-webdriver/lib/promise.js:2970:14)
            at TaskQueue.executeNext_ (/home/travis/build/lrem/ladders/web/node_modules/selenium-webdriver/lib/promise.js:2953:27)
            at asyncRun (/home/travis/build/lrem/ladders/web/node_modules/selenium-webdriver/lib/promise.js:2860:25)
            at /home/travis/build/lrem/ladders/web/node_modules/selenium-webdriver/lib/promise.js:676:7
            at <anonymous>
            at process._tickCallback (internal/process/next_tick.js:188:7)

Example: https://travis-ci.org/lrem/ladders/builds/274494608