Le 4 nov. 2010 à 14:27, Mikko Ohtamaa a écrit :

> 
> Hi,

Hi,

For short, you could do :

- make a GenericSetup snapshot (a)
- install stuffs
- do your tests
- uninstall stuffs
- make a GenericSetup snapshot (b)
- compare snapshots (a) and (b), discarding acceptable differences.

Didn't test that approach myself but that's the way I would do this.

Cheers
-- 
Gilles Lenfant

> 
> How one could test automatically whether an add-on uninstalls cleanly?
> Because this would involve unloading the egg from the memory
> 
> 1. Activate egg
> 2. Run add-on installer
> 3. Mess around with the site (using the add-on capabilities)
> 4. Uninstall add-on
> 5. Deactivate egg
> 6. Try site import/export
> 
> Since this all goes out of one Python process life-cycle I have no idea how
> I could automatize this.
> 
> -----
> Mikko Ohtamaa
> mFabrik - Freedom Delivered.
> 
> Web site - http://mfabrik.com
> Mobile site - http://mfabrik.mobi
> Blog - http://blog.mfabrik.com
> -- 
> View this message in context: 
> http://plone.293351.n2.nabble.com/Automatizing-uninstalls-cleanly-test-tp5705298p5705298.html
> Sent from the Product Developers mailing list archive at Nabble.com.
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to