NAME

DBIO::Test::Slow - Mark a test file as slow so DBIO_TEST_FAST skips it

VERSION

version 0.900005

SYNOPSIS

use strict;
use warnings;
use Test::More;
use DBIO::Test::Slow;

# ... the rest of the test file

DESCRIPTION

A developer working on one corner of DBIO wants a quick run of the suite. A test file that marks itself with use DBIO::Test::Slow; directly after use Test::More; is skipped as a whole when the environment variable DBIO_TEST_FAST is true: on import the module calls Test::More::plan(skip_all => 'slow test, skipped under DBIO_TEST_FAST'). Without the variable it does nothing and the file runs as any other.

ENVIRONMENT

DBIO_TEST_FAST

A true value skips every file marked with this module.

RELEASE_TESTING
AUTOMATED_TESTING

Either one set to a true value wins over DBIO_TEST_FAST: the marker then never skips, so a release run and a smoker always run the full suite.

WHEN TO MARK A FILE

Mark a file when it runs longer than about 5 seconds on an idle machine (measure with prove -l --timer file) and its subject is also touched by a faster file, or is rarely the thing under development. A slow file that is the only guard of its subject, or that is often the subject of a change, stays unmarked.

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.