unitary tests with moose models

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

unitary tests with moose models

abdelghani ALIDRA
Hi all,

I need to test few things on famix entities so I need my tests to load some model.
For instance:
testSomething
        aMooseModel := loadModelFrom: somePackage.
        …


what is the easiest way to do so?
Thanks in advance
Abdelghani
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: unitary tests with moose models

Blondeau Vincent
Hi Abdel,

You can take a look in the package: Moose-Tests-SmalltalkImporter-LAN

The Smalltalk code to import some code from the image is :

        model := MooseModel new.
        MoosePharoImporterTask new
                importerClass: SmalltalkImporter;
                model: model;
                addFromPackageNamed: #'Moose-TestResources-LAN';
                run;
                yourself.

For the tests, I advise you to put your code sample in a separated package.

Cheers,
Vincent

> -----Message d'origine-----
> De : Moose-dev [mailto:[hidden email]] De la part de
> Alidra Abdelghani
> Envoyé : lundi 22 mai 2017 12:35
> À : [hidden email]
> Objet : [Moose-dev] unitary tests with moose models
>
> Hi all,
>
> I need to test few things on famix entities so I need my tests to load some
> model.
> For instance:
> testSomething
>       aMooseModel := loadModelFrom: somePackage.
>       …
>
>
> what is the easiest way to do so?
> Thanks in advance
> Abdelghani
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

!!!*************************************************************************************
"Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.!!!"
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev