Recently, I implemented Protractor testing for our Angular apps at the company and I've been searching for a straightforward method to record the pass/fail status of each scenario in the spec classes. Is there a simple solution for this? Despite my attempts with the jasmine-spec-reporter
, it seems like I might have overlooked something crucial in order to extract the necessary data. Any guidance on this matter would be greatly appreciated.
I experimented with code snippets like this:
let currentSpec = jasmine.getEnv().currrentSpec, passed = currentSpec.results().passed();
But encountered issues such as
currentSpec not specified
If possible, I would prefer capturing pass or fail status without relying on Jasmine reporting.