File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
{{$NEXT}}
2
2
3
+ - Fix some test issues
4
+ - Include some needed modules when loading schema
5
+
3
6
2.000000 2024-07-30 15:00:13-07:00 America/Los_Angeles (TRIAL RELEASE)
4
7
5
8
- NOTE: Backwords incompatible changes, plugins and renderers may need rewriting
Original file line number Diff line number Diff line change @@ -39,15 +39,16 @@ sub wanted {
39
39
my @warnings ;
40
40
41
41
if ($file =~ m { (MySQL|PostgreSQL|SQLite)} ) {
42
- ok(eval { require " App/Yath/Schema/$1 .pm" }, " Load necessary schema '$1 '" , $@ );
42
+ my $schema = $1 ;
43
+ eval { require " App/Yath/Schema/$schema .pm" ; 1} or skip_all " Could not load $schema : $@ " ;
43
44
}
44
45
elsif ($file =~ m { App/Yath/Schema\. pm$} || $file =~ m { Schema/(Overlay|Result)} ) {
45
- ok( eval { require App::Yath::Schema::PostgreSQL }, " Load schema " ) ;
46
+ eval { require App::Yath::Schema::SQLite; 1 } or skip_all " Could not load SQLite: $@ " ;
46
47
}
47
48
48
49
my $ok = eval { local $SIG {__WARN__ } = sub { push @warnings => @_ }; require ($file ); 1 };
49
50
my $err = $@ ;
50
- if ($err =~ m / ^Can't locate / || $err =~ m / version \S + required--this is only version/ ) {
51
+ if ($err =~ m / ^Can't locate / || $err =~ m / version \S + required--this is only version/ || $err =~ m / must be installed / ) {
51
52
skip_all $err ;
52
53
return ;
53
54
}
Original file line number Diff line number Diff line change
1
+ use Test2::Require::Module ' DBD::mysql' ;
2
+ use Test2::Require::Module ' DateTime::Format::MySQL' ;
1
3
use Test2::V0 -target => ' App::Yath::Schema::MySQL' ;
2
4
3
5
use ok $CLASS ;
Original file line number Diff line number Diff line change
1
+ use Test2::Require::Module ' DBD::Pg' ;
2
+ use Test2::Require::Module ' DateTime::Format::Pg' ;
1
3
use Test2::V0 -target => ' App::Yath::Schema::PostgreSQL' ;
2
4
3
5
use ok $CLASS ;
You can’t perform that action at this time.
0 commit comments