Bug #4208
open[ce, ee] test errors get hidden by error page
0%
Description
When running tests the traceback is excepted away by the error handler page, this makes it difficult to debug since eg
app.get('/page_that_errors')
will return a 500 error page instead of a traceback.
OTOH making tests always raise errors will then break the page that checks if the pretty error page is working as it should.
Need to add a dynamic setting, eg settings['use_error_document'] = False - that can be turned on/off at will and will disable the pretty error page handler for running tests.
Updated by Redmine Integration about 8 years ago
pullrequest created, https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2622, (status: under_review)
Updated by Redmine Integration about 8 years ago
- Status changed from New to Resolved
Updated by Redmine Integration about 8 years ago
pullrequest merged, https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2622, (status: approved)
Updated by Daniel D about 8 years ago
- Status changed from Resolved to Feedback
Reopening this as it seems tests on pyramid views, specifically seen in the integration views tests, exhibit the behaviour still - a work around to get tracebacks when running py.test is to set pyramid.includes = pyramid_debugtoolbar
in test.ini but this will break the error page test.