I am hacking on the monkey and I want to pass test results fuelized from one image to another. Fuel does not serialize the classes (for good reason). How can I add that? I did the following approach which didn't work: 1. use a frozen SmalltalkDictionary for the analyzer 2. load some code 3. run some tests 4. serialize the tests results, include newly added classes (since step 1) ========================================================================== serializer := FLSerializer newDefault. "freeze the current environment and thus serialize all new classes" serializer analyzer globalEnvironment: self class environment copy. ========================================================================== What is the proper way to do this? Thanks in advance, camillo
CC'ing the Fuel list. I think you'd need to use Fuel-MetaLevel but I haven't used that functionality myself so I can't say right now. Martin or Mariano should be able to help. Cheers, Max On 15.04.2013, at 11:05, Camillo Bruni <camillobruni@gmail.com> wrote:
I am hacking on the monkey and I want to pass test results fuelized from one image to another. Fuel does not serialize the classes (for good reason).
How can I add that?
I did the following approach which didn't work:
1. use a frozen SmalltalkDictionary for the analyzer 2. load some code 3. run some tests 4. serialize the tests results, include newly added classes (since step 1)
==========================================================================
serializer := FLSerializer newDefault. "freeze the current environment and thus serialize all new classes" serializer analyzer globalEnvironment: self class environment copy.
==========================================================================
What is the proper way to do this?
Thanks in advance, camillo
thanks... I guess I'll bug martin today ;) On 2013-04-15, at 11:17, Max Leske <maxleske@gmail.com> wrote:
CC'ing the Fuel list.
I think you'd need to use Fuel-MetaLevel but I haven't used that functionality myself so I can't say right now. Martin or Mariano should be able to help.
Cheers, Max
On 15.04.2013, at 11:05, Camillo Bruni <camillobruni@gmail.com> wrote:
I am hacking on the monkey and I want to pass test results fuelized from one image to another. Fuel does not serialize the classes (for good reason).
How can I add that?
I did the following approach which didn't work:
1. use a frozen SmalltalkDictionary for the analyzer 2. load some code 3. run some tests 4. serialize the tests results, include newly added classes (since step 1)
==========================================================================
serializer := FLSerializer newDefault. "freeze the current environment and thus serialize all new classes" serializer analyzer globalEnvironment: self class environment copy.
==========================================================================
What is the proper way to do this?
Thanks in advance, camillo
On 15.04.2013, at 11:39, Camillo Bruni <camillobruni@gmail.com> wrote:
thanks... I guess I'll bug martin today ;)
True. I forgot you worked at the same place. Knock, knock, knock. "Martin". Knock, knock, knock. "Martin". Knock, knock, knock. "Martin". :)
On 2013-04-15, at 11:17, Max Leske <maxleske@gmail.com> wrote:
CC'ing the Fuel list.
I think you'd need to use Fuel-MetaLevel but I haven't used that functionality myself so I can't say right now. Martin or Mariano should be able to help.
Cheers, Max
On 15.04.2013, at 11:05, Camillo Bruni <camillobruni@gmail.com> wrote:
I am hacking on the monkey and I want to pass test results fuelized from one image to another. Fuel does not serialize the classes (for good reason).
How can I add that?
I did the following approach which didn't work:
1. use a frozen SmalltalkDictionary for the analyzer 2. load some code 3. run some tests 4. serialize the tests results, include newly added classes (since step 1)
==========================================================================
serializer := FLSerializer newDefault. "freeze the current environment and thus serialize all new classes" serializer analyzer globalEnvironment: self class environment copy.
==========================================================================
What is the proper way to do this?
Thanks in advance, camillo
Hey! We don't have proper documentation about serializing classes. This feature is not included into the default configuration that comes in Pharo 2.0. I wrote this (i guess) self-explaining code snippet and will add it to doc: http://ws.stfx.eu/CGZB6XROFII0 cheers Martin On Mon, Apr 15, 2013 at 11:05 AM, Camillo Bruni <camillobruni@gmail.com> wrote:
I am hacking on the monkey and I want to pass test results fuelized from one image to another. Fuel does not serialize the classes (for good reason).
How can I add that?
I did the following approach which didn't work:
1. use a frozen SmalltalkDictionary for the analyzer 2. load some code 3. run some tests 4. serialize the tests results, include newly added classes (since step 1)
==========================================================================
serializer := FLSerializer newDefault. "freeze the current environment and thus serialize all new classes" serializer analyzer globalEnvironment: self class environment copy.
==========================================================================
What is the proper way to do this?
Thanks in advance, camillo
participants (3)
-
Camillo Bruni -
Martin Dias -
Max Leske