Subject: | failing tests |
Today I tried to understand a failing test that looked like this:
t/040_basic_utils.........................
# Failed test '... got the right class name from the yaml item'
# at t/040_basic_utils.t line 82.
# got: 'Foo'
# expected: undef
# Looks like you failed 1 test of 5.
When I ran through the debugger I saw that it is a potential SKIP but
the test for the SKIP only checks
if ($@ =~ /^Could not load YAML module because/) {
At this point the actual value of $@ was:
Can\'t locate Best.pm in @INC
So either your expectations need to take into account this failing mode
or the MooseX::Storage::Util->peek must die when Best is missing.
Or something.
Hope this helps,