karma-browserstack-launcher icon indicating copy to clipboard operation
karma-browserstack-launcher copied to clipboard

Karma BrowserStack reporting enhancements

Open samirans89 opened this issue 6 years ago • 1 comments

Current reporting ability of the Karma Launcher is only to mark status = 'failed' for a session. Does not handle success, timeouts, disconnect cases. Also, there is no provision added to mark failure reasons.  This PR implements the following changes:

  • Handle additional Karma events for ‘spec complete’, ‘spec success’, ‘spec failure’, ‘spec skipped’, ‘browser complete’, ‘browser error’, ‘run complete’ for session reporting requirements 
  • Update ‘Session Name’ with Karma ‘Test Suite name’ which got executed in the sessionUpdate session ‘Status’ field to ‘Passed’ or ‘Failed’ based on the actual session run
  • Update the session ‘Reason’ field (255 chars) with the ‘specs completed’ within the session for ‘Passed’ runs and the first failure reason for ‘Failed’ runs
  • Update ‘Build Name’ post batch execution of Karma tests with the number of specs passed, failed (if any) and also report whether the session encountered any disconnects / browser errors.

samirans89 avatar Feb 05 '20 17:02 samirans89

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

googlebot avatar Feb 05 '20 17:02 googlebot