Run Jasmine stack traces through sourcemaps for display.

Review Request #8325 — Created Aug. 12, 2016 and submitted

Information

Review Board
release-3.0.x
bbab51a...

Reviewers

Jasmine stack trace output (shown when a test fails) is hard to debug
with Babel. Fortunately, there's a useful third-party module called
sourcemapped-stacktrace.js, which can take a stacktrace and apply
sourcemaps. This change introduces that module and a new custom module
for Jasmine that will use this for all resulting stack traces.

Ran some failing unit tests where ES6 code was involved. Saw that instead
of seeing generated JavaScript output referenced in the stack traces,
the original source filenames and lines were shown instead.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/lib/js/sourcemapped-stacktrace.js
        reviewboard/static/lib/js/jasmine.sourcemaps-1.0.js
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/lib/js/sourcemapped-stacktrace.js
        reviewboard/static/lib/js/jasmine.sourcemaps-1.0.js
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (fc1a6aa)
Loading...