Skip to content

Instantly share code, notes, and snippets.

@catkins
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catkins/00aa998cc88c4b6cc644 to your computer and use it in GitHub Desktop.
Save catkins/00aa998cc88c4b6cc644 to your computer and use it in GitHub Desktop.
Collect Jasmine Results in JSON
// pretty low-tech but works with jasmine 2.1's html runner in chrome 40
var results = $('.symbol-summary > li').map(function(x) {
return {
description: this.attributes.title.value,
status: this.attributes.class.value,
id: this.id.substr(9)
};
}).toArray();
var json = JSON.stringify(results);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment