Description

If a test fails with an exception, Nir's new HTML exception handler is called making the page useless for some people.

Besides that, there is another bug in the tests code which let me see the broken exception :-)

Example

Tests of this wiki

Steps to reproduce

  1. Break some stuff in order to let a test fail.
  2. run ?action=test

Details

This Wiki.

Workaround

Run the tests from the command line: make test

Discussion

We should not ship MoinMoin again with broken tests ...

The tests are broken only in the context of the test action. We should investigate that.

The problem were few tests that use a new request instance instead of _tests.request. Don't do that! (Nir slaps himself)

There is no problem with test that fail with an exception, but with tests that raise MoinMoin.error.ConfigurationError. This error is raised when you try to create a RequestCLI instance inside the tests.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/ActionTestFallsIntoHtmlExceptionHandler (last edited 2007-10-29 19:13:11 by localhost)