On Mon, Jun 9, 2008 at 7:43 PM, John Napiorkowski <[EMAIL PROTECTED]> wrote:
>
>
>
> --- On Mon, 6/9/08, Zbigniew Lukasiak <[EMAIL PROTECTED]> wrote:
>
>> From: Zbigniew Lukasiak <[EMAIL PROTECTED]>
>> Subject: [Dbix-class] Testing classes as CPAN distribution?
>> To: "DBIx::Class user and developer list" <[email protected]>
>> Date: Monday, June 9, 2008, 1:20 PM
>> Hi,
>>
>> When writing some DBIC extensions or other DBIC dependent
>> modules it
>> is useful to have at hand the full array of possible DBIC
>> classes and
>> relations.  What do you think about copying part of the
>> DBIC testing
>> library and releasing it as a CPAN module?
>
> I've actually been slowly working on something like this on the side.  I was 
> thinking it would eventually be something like the way catalyst helpers work, 
> so that you can target an namespace and directory like:
>
> build_dbic_testlibs.pl --namespace 'MyApp' -directory 't/lib'
>
> and you'd get a schema in t/lib with a loader and a bunch of classes.  I was 
> also thinking it could populate default data, etc and then the author could 
> go in and add additional stuff.  Would also be great if it created a default 
> test for you, that way you can check to make sure your custom component 
> didn't blow anything up.

What I had in mind was something static - just a schema, a
comprehensive set of ResultSource definitions and the infrastructure
for deployment (DBICTest.pm).  At least this is what I would need to
test my modules - I don't need to change the names.  Additionally
standardisation would mean that everyone would understand the model
used and immediately grasp what is going on in the tests.

What is your use case for the changeable names?

>
> If you care to collaborate we can meet up on IRC and work out some details, 
> if that works for you.  I was orginally also making these test classes as 
> something that's highly documented, that way they could server a dual 
> purpose, both for testing and also as a teaching tool.   My current status 
> with is is I got about half the schema classes I think I need for this to 
> work, as well as a way to quickly deploy to SQLite or another target DB.
>

Sure - let's see first what others have to say here, then we can
discuss it at IRC (I am in CET zone).

Cheers,
Zbigniew

>
> --JohnN
>
>>
>> --
>> Zbigniew Lukasiak
>> http://brudnopis.blogspot.com/
>>
>> _______________________________________________
>> List:
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>> IRC: irc.perl.org#dbix-class
>> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>> Searchable Archive:
>> http://www.grokbase.com/group/[EMAIL PROTECTED]
>
>
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]
>



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to