Skip to content

Testacular prevents error messages from being logged in browser console #368

@mpj

Description

@mpj

In my testacular.conf.js, I'm loading a test-runner.js, which in turn requires my tests using a custom-made require function. This works fine, but if test-runner.js or any of the tests it loads through require has a syntax error, that error does ONLY show up in the Testacular command line tool, not the browser. I'd like it to show up in the browser in addition to the command line, just like errors that occur after the tests start runnung.

The reason I need this is because I want source maps to work (the require does some stuff that messes up the line numbers). If the error is handled by the browser, it will be able to use the source map and produce a correct line number, which Testacular does not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions