Skip to content

deanhunt/jasmine-visual-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasmine-visual-diff

Side-by-side diffing for Jasmine string comparisons.

Quick hack leaning on https://github.com/wickedest/Mergely and its dependencies (Code Mirror, jQuery).

Installation

  • Grab the source with a git clone https://github.com/deanhunt/jasmine-visual-diff.git
  • Visit chrome://extensions; navigate to the repo and load its entire folder (including manifest.json).
  • Check "Enable in Incognito Mode" if it pleases you.

Use

  • Run your Jasmine tests via SpecRunner.html.
  • Click the Expected 'something' to be 'something else' error reported in Jasmine test failures (not the stack trace).
  • The inline string comparison will be replaced by a side-by-side diff. (The stack trace will also be compressed.)

Limitations

  • Only works on URLs container the text SpecRunner
  • Only currently recognizes the form "Expected 'something' to be 'something else'"
  • Mergely has a viral license so it's not embeddable directly within application code (thus the extension)

About

Side-by-side diffing for Jasmine string comparisons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published