Subject: | Map::Tube Support for testing of Map::Modules |
Map modules can use infrastructure supplied by Map::Tube. In particular, the method _validate_map_data() may be used. If this method detects an error in the XML map file, it will throw an exception. Unfortunately in the setting of standard module tests, the exception will be caught by the framework. Hence, the detailed message that comes with the exception will never be displayed to the user=tester. Instead, the standard failure message from the test framework will not include information useful for locating the problem.
It would be nice if the detailed error message were presented to the user=tester somehow, in order to ease finding the problem; maybe by (also?) writing the error message to STDERR.
For demonstration purposes, take the build test of M::T::Moscow in version 0.04 (later versions have been fixed).