Skip to content

Commit

Permalink
Add loading of DBM test cases in DBM variant plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Mar 15, 2014
1 parent 49332da commit 28efa4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sandbox/tim/lib/DBI/Test/VariantDBD/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sub provider_initial {
$context->new_meta_info(tdb_handle => $tdb_handle),
);

# add DBI_USER and DBI_PASS into each variant, if defined
# add DBI_USER and DBI_PASS if defined
$default_context->push_var($context->new_env_var(DBI_USER => $tdb_handle->username))
if defined $tdb_handle->username;
$default_context->push_var($context->new_env_var(DBI_PASS => $tdb_handle->password))
Expand Down
8 changes: 4 additions & 4 deletions sandbox/tim/lib/DBI/Test/VariantDBD/DBM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ sub provider {
# affect other contexts (but does affect all variants in this context).
#$tests->{'plugin/ExampleExtraTests.t'} = { lib => 'plug', module => 'DBM::ExampleExtraTests' };
#
# $self->find_input_test_modules(
# search_path => [ 'DBD::DBM::TestCases' ],
# input_tests => $tests,
# );
$self->find_input_test_modules(
search_path => [ 'DBD::DBM::TestCase' ],
input_tests => $tests,
);

return;
}
Expand Down
1 change: 1 addition & 0 deletions sandbox/tim/tumbler.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
$test_writer->write_test_variants(
input_tests => $test_writer->find_input_test_modules(
search_path => [ 'DBI::TestCase' ],
test_prefix => '',
),
variant_providers => [
"DBI::Test::VariantDBI",
Expand Down

0 comments on commit 28efa4e

Please sign in to comment.