ghost-inspector / node-ghost-inspector

Ghost Inspector CLl & API Library for Node.js
https://ghostinspector.com/docs/api/
MIT License
28 stars 6 forks source link

Return screenshot status with test/suite status #23

Closed aaronfay closed 3 years ago

aaronfay commented 3 years ago

This adds a new option for executing a test or suite options.useScreenshotForPassingStatus.

Modified to add an additional return param to the signatures for executeTest and executeSuite:

const [result, passing, screenshotPassing] = await ghost.executeTest(...)

Also fixes a regression where a suite/test executed with a CSV containing 1 row would return a single result instead of a list.

aaronfay commented 3 years ago

@justinklemm yeah good call 👍🏻 that would be much cleaner.