factory for quickly building test objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

factory for quickly building test objects

sergio_101
hey, all..

i was wondering of there was a system to allow me to quickly build an
object for testing..

something that would let me build a complex object that and feed it to
a test suite. something that would allow me to define all of the
object's attributes and assure its validity quickly..

any ideas?

thanks!


--
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

Paul DeBruicker
hmm.  Is something like this what you have in mind:

http://www.squeaksource.com/Mocketry.html

?


On 09/07/2012 08:07 AM, sergio_101 wrote:

> hey, all..
>
> i was wondering of there was a system to allow me to quickly build an
> object for testing..
>
> something that would let me build a complex object that and feed it to
> a test suite. something that would allow me to define all of the
> object's attributes and assure its validity quickly..
>
> any ideas?
>
> thanks!
>
>


Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

sergio_101
whoa.. i am going to have to look at this a bit more.. but it looks
like that is a mocking library.. i am thinking of something a little
more like 'factory girl' for ruby..

thanks!



On Fri, Sep 7, 2012 at 11:53 AM, Paul DeBruicker <[hidden email]> wrote:

> hmm.  Is something like this what you have in mind:
>
> http://www.squeaksource.com/Mocketry.html
>
> ?
>
>
>
> On 09/07/2012 08:07 AM, sergio_101 wrote:
>>
>> hey, all..
>>
>> i was wondering of there was a system to allow me to quickly build an
>> object for testing..
>>
>> something that would let me build a complex object that and feed it to
>> a test suite. something that would allow me to define all of the
>> object's attributes and assure its validity quickly..
>>
>> any ideas?
>>
>> thanks!
>>
>>
>
>



--
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

Stéphane Ducasse
There is but I do not remember its name a way to instruct an object about answer to message and it can replay
the answer.

stef
On Sep 7, 2012, at 6:01 PM, sergio_101 wrote:

> whoa.. i am going to have to look at this a bit more.. but it looks
> like that is a mocking library.. i am thinking of something a little
> more like 'factory girl' for ruby..
>
> thanks!
>
>
>
> On Fri, Sep 7, 2012 at 11:53 AM, Paul DeBruicker <[hidden email]> wrote:
>> hmm.  Is something like this what you have in mind:
>>
>> http://www.squeaksource.com/Mocketry.html
>>
>> ?
>>
>>
>>
>> On 09/07/2012 08:07 AM, sergio_101 wrote:
>>>
>>> hey, all..
>>>
>>> i was wondering of there was a system to allow me to quickly build an
>>> object for testing..
>>>
>>> something that would let me build a complex object that and feed it to
>>> a test suite. something that would allow me to define all of the
>>> object's attributes and assure its validity quickly..
>>>
>>> any ideas?
>>>
>>> thanks!
>>>
>>>
>>
>>
>
>
>
> --
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> http://www.ThoseOptimizeGuys.com
> http://www.CodingForHire.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

sergio_101
i suppose you could make a method that creates itself with some data
filled in.. that might work, too..

On Fri, Sep 7, 2012 at 3:11 PM, Stéphane Ducasse
<[hidden email]> wrote:

> There is but I do not remember its name a way to instruct an object about answer to message and it can replay
> the answer.
>
> stef
> On Sep 7, 2012, at 6:01 PM, sergio_101 wrote:
>
>> whoa.. i am going to have to look at this a bit more.. but it looks
>> like that is a mocking library.. i am thinking of something a little
>> more like 'factory girl' for ruby..
>>
>> thanks!
>>
>>
>>
>> On Fri, Sep 7, 2012 at 11:53 AM, Paul DeBruicker <[hidden email]> wrote:
>>> hmm.  Is something like this what you have in mind:
>>>
>>> http://www.squeaksource.com/Mocketry.html
>>>
>>> ?
>>>
>>>
>>>
>>> On 09/07/2012 08:07 AM, sergio_101 wrote:
>>>>
>>>> hey, all..
>>>>
>>>> i was wondering of there was a system to allow me to quickly build an
>>>> object for testing..
>>>>
>>>> something that would let me build a complex object that and feed it to
>>>> a test suite. something that would allow me to define all of the
>>>> object's attributes and assure its validity quickly..
>>>>
>>>> any ideas?
>>>>
>>>> thanks!
>>>>
>>>>
>>>
>>>
>>
>>
>>
>> --
>> ----
>> peace,
>> sergio
>> photographer, journalist, visionary
>>
>> http://www.ThoseOptimizeGuys.com
>> http://www.CodingForHire.com
>> http://www.coffee-black.com
>> http://www.painlessfrugality.com
>> http://www.twitter.com/sergio_101
>> http://www.facebook.com/sergio101
>>
>
>



--
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

Guillaume Larcheveque
I think you are thinking of BabyMock steph.

2012/9/7 sergio_101 <[hidden email]>
i suppose you could make a method that creates itself with some data
filled in.. that might work, too..

On Fri, Sep 7, 2012 at 3:11 PM, Stéphane Ducasse
<[hidden email]> wrote:
> There is but I do not remember its name a way to instruct an object about answer to message and it can replay
> the answer.
>
> stef
> On Sep 7, 2012, at 6:01 PM, sergio_101 wrote:
>
>> whoa.. i am going to have to look at this a bit more.. but it looks
>> like that is a mocking library.. i am thinking of something a little
>> more like 'factory girl' for ruby..
>>
>> thanks!
>>
>>
>>
>> On Fri, Sep 7, 2012 at 11:53 AM, Paul DeBruicker <[hidden email]> wrote:
>>> hmm.  Is something like this what you have in mind:
>>>
>>> http://www.squeaksource.com/Mocketry.html
>>>
>>> ?
>>>
>>>
>>>
>>> On 09/07/2012 08:07 AM, sergio_101 wrote:
>>>>
>>>> hey, all..
>>>>
>>>> i was wondering of there was a system to allow me to quickly build an
>>>> object for testing..
>>>>
>>>> something that would let me build a complex object that and feed it to
>>>> a test suite. something that would allow me to define all of the
>>>> object's attributes and assure its validity quickly..
>>>>
>>>> any ideas?
>>>>
>>>> thanks!
>>>>
>>>>
>>>
>>>
>>
>>
>>
>> --
>> ----
>> peace,
>> sergio
>> photographer, journalist, visionary
>>
>> http://www.ThoseOptimizeGuys.com
>> http://www.CodingForHire.com
>> http://www.coffee-black.com
>> http://www.painlessfrugality.com
>> http://www.twitter.com/sergio_101
>> http://www.facebook.com/sergio101
>>
>
>



--
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101




--
Guillaume Larcheveque


Reply | Threaded
Open this post in threaded view
|

Re: factory for quickly building test objects

sergio_101
i should also point out that the main reason i am thinking about this
is so that i can quickly build associated models for testing..  once
the models get very complex, quickly creating a model can be a pain..



--
----
peace,
sergio
photographer, journalist, visionary

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101