9 plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_prettydebug')
10 unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_prettydebug');
13 BEGIN { delete @ENV{qw(DBIC_TRACE_PROFILE)} }
16 my $schema = DBICTest->init_schema;
18 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Statistics');
22 local $ENV{DBIC_TRACE_PROFILE} = 'console';
24 my $schema = DBICTest->init_schema;
26 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
27 is($schema->storage->debugobj->_sqlat->indent_string, ' ', 'indent string set correctly from console profile');
31 local $ENV{DBIC_TRACE_PROFILE} = './t/lib/awesome.json';
33 my $schema = DBICTest->init_schema;
35 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
36 is($schema->storage->debugobj->_sqlat->indent_string, 'frioux', 'indent string set correctly from file-based profile');