[IMP] web: display annotated tracebacks in debug=assets
Warning: this commit savagely patches qunitjs sourcecode. I know... I
feel bad.
Since we updated the way debug=assets work, we have a new problem in the
qunit test suite: the tracebacks displayed by QUnit are relative to the
bundle file, not the original file, which is annoying in practice.
There is really no good way that I could find to integrate with QUnit to
perform that task, so I had to do it the ugly way: modify QUnit from the
inside to use the StackTrace library to annotate the traceback with the
proper information.
closes odoo/odoo#66771
Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/web/static/lib/qunit/qunit-2.9.1.js 15 additions, 1 deletionaddons/web/static/lib/qunit/qunit-2.9.1.js
- addons/web/static/src/js/core/error_utils.js 1 addition, 1 deletionaddons/web/static/src/js/core/error_utils.js
- addons/web/static/tests/helpers/qunit_config.js 5 additions, 0 deletionsaddons/web/static/tests/helpers/qunit_config.js
Loading
Please register or sign in to comment