Hi,
Now that the continuous integration build is using the cool ZeroConf infrastructure, we needed a clean way to run all tests from Moose based on the information gathered from the ConfigurationOfMoose. More precisely we want to run all the tests from all packages that are in the 'Tests' group from all configurations referred from ConfigurationOfMoose (including itself) :). It's sounds more complicated than it actually is: packages | packages | packages := Set new. (self mooseDevelopmentVersion packagesForSpecNamed: 'Tests') do: [ :spec | packages add: spec name ]. self mooseDevelopmentVersion projects do: [ :each | (each version packagesForSpecNamed: 'Tests') do: [ :spec | packages add: spec name ] ]. ^ packages We used to have this logic in an .st file that was ran through the builder from Lukas. But, now, I simply created the MooseTestRunnerCommandLineHandler as a subclass of TestRunnerCommandLineHandler, and provided the new packages. I gave it the commandName of 'moosetest' and now I can simply call from the command line: Pharo ./Moose-latest-dev-4.8.image moosetest In Moose, we have a little package named: Moose-Development-Tools that is loaded by the configuration. I added the new class to it, and I can easily integrate the whole test running in the ci job after loading the configuration. I'd say it's pretty neat. Cheers, Doru p.s. The VM still crashes when running the tests though (at least on Mac) -- www.tudorgirba.com "Beauty is where we see it." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi doru
can you report precisely because now we cannot take any action? Stef
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Tudor Girba-2
this is cool :)
> Hi, > > Now that the continuous integration build is using the cool ZeroConf infrastructure, we needed a clean way to run all tests from Moose based on the information gathered from the ConfigurationOfMoose. More precisely we want to run all the tests from all packages that are in the 'Tests' group from all configurations referred from ConfigurationOfMoose (including itself) :). > > It's sounds more complicated than it actually is: > packages > | packages | > packages := Set new. > (self mooseDevelopmentVersion packagesForSpecNamed: 'Tests') do: [ :spec | packages add: spec name ]. > self mooseDevelopmentVersion projects do: [ :each | > (each version packagesForSpecNamed: 'Tests') do: [ :spec | packages add: spec name ] ]. > ^ packages > > We used to have this logic in an .st file that was ran through the builder from Lukas. > > But, now, I simply created the MooseTestRunnerCommandLineHandler as a subclass of TestRunnerCommandLineHandler, and provided the new packages. I gave it the commandName of 'moosetest' and now I can simply call from the command line: > > Pharo ./Moose-latest-dev-4.8.image moosetest > > In Moose, we have a little package named: Moose-Development-Tools that is loaded by the configuration. I added the new class to it, and I can easily integrate the whole test running in the ci job after loading the configuration. > > I'd say it's pretty neat. > > Cheers, > Doru > > p.s. The VM still crashes when running the tests though (at least on Mac) > > -- > www.tudorgirba.com > > "Beauty is where we see it." > > > > _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by stephane ducasse
Hi,
I wanted to investigate it a bit more before announcing the problem. You can reproduce it on Mac, quite consistently: just run the attached script (you need to have wget installed), or do it manually: 1. download and unzip the latest Moose 4.8: https://ci.inria.fr/moose/job/Moose-latest-dev-4.8/lastSuccessfulBuild/artifact/Moose-latest-dev-4.8.zip 2. download and unzip the latest Pharo VM: http://pharo.gforge.inria.fr/ci/vm/pharo/mac/pharo-mac-latest.zip 3. execute: ./Pharo.app/Contents/MacOS/Pharo ./Moose-latest-dev-4.8.image moosetest The VM crashes, but there is no trace of the error. Cheers, Doru On Mar 9, 2013, at 1:35 PM, stephane ducasse <[hidden email]> wrote: > Hi doru > > can you report precisely because now we cannot take any action? > > Stef > >> >> p.s. The VM still crashes when running the tests though (at least on Mac) > -- www.tudorgirba.com "What is more important: To be happy, or to make happy?" _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
thanks!
Stef On Mar 9, 2013, at 10:41 PM, Tudor Girba <[hidden email]> wrote: > Hi, > > I wanted to investigate it a bit more before announcing the problem. You can reproduce it on Mac, quite consistently: just run the attached script (you need to have wget installed), or do it manually: > > 1. download and unzip the latest Moose 4.8: > https://ci.inria.fr/moose/job/Moose-latest-dev-4.8/lastSuccessfulBuild/artifact/Moose-latest-dev-4.8.zip > 2. download and unzip the latest Pharo VM: > http://pharo.gforge.inria.fr/ci/vm/pharo/mac/pharo-mac-latest.zip > 3. execute: > ./Pharo.app/Contents/MacOS/Pharo ./Moose-latest-dev-4.8.image moosetest > > > The VM crashes, but there is no trace of the error. > > Cheers, > Doru > > > On Mar 9, 2013, at 1:35 PM, stephane ducasse <[hidden email]> wrote: > >> Hi doru >> >> can you report precisely because now we cannot take any action? >> >> Stef >> >>> >>> p.s. The VM still crashes when running the tests though (at least on Mac) >> > > -- > www.tudorgirba.com > > "What is more important: To be happy, or to make happy?" > > _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |