Skip to content

Tests with uncaught exceptions disappear #13

@brcsw

Description

@brcsw

Repro: Run a test that throws an uncaught exception, for example:

var QUnit = QUnitGS2.QUnit;

function doGet() {
   QUnitGS2.init();

   // Just to demonstrate that QUnitGS2 plumbing is hooked up correctly.
   QUnit.test("simple numbers", function( assert ) {
     assert.equal(1 + 1, 2, "addition");
   });

   QUnit.test("exception", function( assert ) {
     Logger.log("before exception");
     throw "uh oh";
     Logger.log("after exception");
   });

   QUnit.start();
   return QUnitGS2.getHtml();
}

function getResultsFromServer() {
   return QUnitGS2.getResultsFromServer();
}

I'm using the V8 runtime; not sure if that matters.

Expected: something shows up in the results page, or at least in the log that indicates an exception was thrown.

Actual: no indication in the UI that the test was even defined:

html screenshot

logs screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions