This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
Adding Jasmine-Parser gem to generate JS stack trace in Rspec #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey guys,
Finally got some stuff together, think of this as a preview commit because i'm looking for your feedback on how to make this better. But here it goes.
I notice that stack traces in files were not supported at all in rspec, and especially on IE. So, to solve this issue, I've made a small gem that parses all of the spec files and creates a stack trace, which later gets injected into rspec's stack trace for a failure.
Here is what it looks like now on 2 tests, which I force to fail http://i.imgur.com/f7Bvjhv.jpg
Couple of notes on the gem
Parser source code lives here: https://github.com/groupon/jasmine-parser
I’ll continue working on it, to make it better.
Finally, my hope is to use this gem to add future feature to jasmine, where user can run a single test or a folder. This way the full suite does not need to be loaded into the browser… my hope is to make it a little closer to rspec behavior
… jasmine… foo/bar_spec.js:13