user-pic

Timm Murray

Subscribe to feed Recent Actions from Timm Murray

  • Ovid commented on Failed compilations can be partially successful

    This is part of the reason Test::Most can die on fail. Years ago I was struggling to figure out a problem where some perfectly sensible code was mysteriously failing a test, but the there appeared to be nothing wrong with the code. As it turns out, at the top of my test, use_ok was also failing, but so many passing tests scrolled past that I didn't see that. I only saw a very mysterious failure at the end. Another programmer and I wasted a lot of time trying to figure out what was wrong, but didn't realize that Perl doesn't clean…

  • brian d foy commented on Failed compilations can be partially successful

    That's why I check the return value of use_ok() before I continue. :)

  • brian d foy commented on Failed compilations can be partially successful

    Sure it has practical issues. This is how I found out about the issue. :)

  • thetrb commented on Failed compilations can be partially successful

    I like that you can tell Test::Most to die on fail, but don't like that it will still run the subsequent test.

    See this pseudo-code where the "run" function dies on all errors:

    lives_ok { run("mount server:/abc /mnt/abc") "Mounting";
    lives_ok { run("dd if=/dev/zero of=/mnt/abc/file count=1M") } "dd";

    This will still run the dd and only abort after that. I haven't figured out a good way to deal with that except for adding an "or die ..." after every critical test.

  • thetrb commented on Failed compilations can be partially successful

    I like that you can tell Test::Most to die on fail, but don't like that it will still run the subsequent test.

    See this pseudo-code where the "run" function dies on all errors:

    lives_ok { run("mount server:/abc /mnt/abc") "Mounting";
    lives_ok { run("dd if=/dev/zero of=/mnt/abc/file count=1M") } "dd";

    This will still run the dd and only abort after that. I haven't figured out a good way to deal with that except for adding an "or die ..." after every critical test.

Subscribe to feed Responses to Comments from Timm Murray

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.