Skip Menu |
 

This queue is for tickets about the DBIx-Class-Fixtures CPAN distribution.

Report information
The Basics
Id: 91738
Status: new
Priority: 0/
Queue: DBIx-Class-Fixtures

People
Owner: Nobody in particular
Requestors: pterjan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Broken tests, missing dependency?
Date: Mon, 30 Dec 2013 18:59:52 +0100
To: bug-DBIx-Class-Fixtures [...] rt.cpan.org
From: Pascal Terjan <pterjan [...] gmail.com>
Download (untitled) / with headers
text/plain 5.2k
Tests were passing fine here until I did some cleanup on my system which leads me to wonder about a missing dependency. I now have 3 failures: t/12-populate-basic.t ........ 3/? DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'Artist' is not associated with a schema). You need to use $schema->thaw() or manually set $DBIx::Class::ResultSourceHandle::thaw_schema while thawing. at t/12-populate-basic.t line 31 # Looks like your test exited with 2 just after 3. t/12-populate-basic.t ........ Dubious, test returned 2 (wstat 512, 0x200) All 3 subtests passed t/13-populate-two-dbs.t ...... 1/7 DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'Artist' is not associated with a schema). You need to use $schema->thaw() or manually set $DBIx::Class::ResultSourceHandle::thaw_schema while thawing. at t/13-populate-two-dbs.t line 44 # Looks like you planned 7 tests but ran 4. # Looks like your test exited with 2 just after 4. t/13-populate-two-dbs.t ...... Dubious, test returned 2 (wstat 512, 0x200) Failed 3/7 subtests t/14-populate-post.t ......... 1/5 DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'Artist' is not associated with a schema). You need to use $schema->thaw() or manually set $DBIx::Class::ResultSourceHandle::thaw_schema while thawing. at t/14-populate-post.t line 27 # Looks like you planned 5 tests but ran 3. # Looks like your test exited with 2 just after 3. t/14-populate-post.t ......... Dubious, test returned 2 (wstat 512, 0x200) [pterjan@chopin DBIx-Class-Fixtures-1.001021]$ prove -vwl t/12-populate-basic.t t/12-populate-basic.t .. -- -- Created by SQL::Translator::Producer::SQLite -- Created on Tue Aug 8 01:53:20 2006 -- BEGIN TRANSACTION -- -- Table: cd_to_producer -- CREATE TABLE cd_to_producer ( cd integer NOT NULL, producer integer NOT NULL, PRIMARY KEY (cd, producer) ) -- -- Table: artist -- CREATE TABLE artist ( artistid INTEGER PRIMARY KEY NOT NULL, name varchar(100) ) -- -- Table: cd -- CREATE TABLE cd ( cdid INTEGER PRIMARY KEY NOT NULL, artist integer NOT NULL, title varchar(100) NOT NULL, year varchar(100) NOT NULL ) -- -- Table: track -- CREATE TABLE track ( trackid INTEGER PRIMARY KEY NOT NULL, cd integer NOT NULL, position integer NOT NULL, title varchar(100) NOT NULL, last_updated_on datetime NULL ) -- -- Table: tags -- CREATE TABLE tags ( tagid INTEGER PRIMARY KEY NOT NULL, cd integer NOT NULL, tag varchar(100) NOT NULL ) -- -- Table: producer -- CREATE TABLE producer ( producerid INTEGER PRIMARY KEY NOT NULL, name varchar(100) NOT NULL ) COMMIT ok 1 - got schema ok 2 - object created with correct config dir generating fixtures - clearing existing /tmp/WoFmuZdrRE - creating /tmp/WoFmuZdrRE - dumping Artist - moving temp dir to t/var/fixtures - clearing tmp dir /tmp/WoFmuZdrRE done ok 3 - simple dump executed okay creating schema Tables to drop: [artist, cd, cd_to_producer, producer, tags, track] - clearing DB of existing tables - deploying schema using t/lib/sqlite.sql - finished importing DDL into DB importing fixtures - deleting existing temp directory /tmp/ysXbNHR_MV - creating temp dir - adding Artist DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'Artist' is not associated with a schema). You need to use $schema->thaw() or manually set $DBIx::Class::ResultSourceHandle::thaw_schema while thawing. at t/12-populate-basic.t line 31 1..3 # Looks like your test exited with 2 just after 3. Dubious, test returned 2 (wstat 512, 0x200) All 3 subtests passed Test Summary Report ------------------- t/12-populate-basic.t (Wstat: 512 Tests: 3 Failed: 0) Non-zero exit status: 2 Files=1, Tests=3, 3 wallclock secs ( 0.02 usr 0.00 sys + 0.76 cusr 0.05 csys = 0.83 CPU) Result: FAIL Dependencies seem to all be present: *** Module::AutoInstall version 1.06 *** Checking for Perl dependencies... [Core Features] - Test::More ...loaded. (0.98 >= 0.98) - DBIx::Class::InflateColumn::FS ...loaded. (0.01007 >= 0.01007) - DBIx::Class ...loaded. (0.08250 >= 0.08102) - Data::Visitor ...loaded. (0.30 >= 0.3) - File::Copy::Recursive ...loaded. (0.38 >= 0.38) - DateTime ...loaded. (1.03 >= 1.03) - DBIx::Class::Schema::Loader ...loaded. (0.07036 >= 0.07035) - Class::Accessor::Grouped ...loaded. (0.10010 >= 0.1001) - Path::Class ...loaded. (0.32 >= 0.32) - Config::Any ...loaded. (0.24 >= 0.23) - JSON::Syck ...loaded. (1.27 >= 1.27) - Data::Dump::Streamer ...loaded. (2.36 >= 2.05) - Hash::Merge ...loaded. (0.12 >= 0.1) - Scalar::Util ...loaded. (1.33 >= 1.27) - MIME::Base64 ...loaded. (3.13) - File::Spec::Functions ...loaded. (3.40 >= 3.4) - File::Path ...loaded. (2.09 >= 2.09) - DateTime::Format::SQLite ...loaded. (0.11 >= 0.1) - DateTime::Format::MySQL ...loaded. (0.04) - DateTime::Format::Pg ...loaded. (0.16009) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good
Subject: Re: [rt.cpan.org #91738] AutoReply: Broken tests, missing dependency?
Date: Mon, 30 Dec 2013 21:47:00 +0100
To: bug-dbix-class-fixtures <bug-DBIx-Class-Fixtures [...] rt.cpan.org>
From: Pascal Terjan <pterjan [...] gmail.com>
Download (untitled) / with headers
text/plain 146b
After some time experimenting, I found the required module: Clone. I don't know if the missing dependency is here or in one of the dependencies.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.