Jump to content

Module Development with Testing


Recommended Posts

Hi All, 


We are new to PrestaShop shop and are developing a Module that will sync a 3rd Part POS to the local Catalogue of PrestaShop . We are mainly .Net devs and work with Nunit and Ninject in our projects for Unit testing and Dependency Injection. 


 


 I have looked around the forum and Googled a fair bit and i don't see many comments/blogs/posts about how developers are testing their modules. 


Are there any guides on pointers that can be provided on how to develop a module using Dependency Injection as well as any php unit test framework. 


I have read about the PHP compatible Unit test and Dependency Injection frameworks but i can't see how to integrate it using the PrestaShop module structure


 


 


We would like to keep our normal coding principals in place and develop the module using dependency Injection so we can swap our classes depending on the POS we are developing for. We would like to have our code unit tested to allow us to implement new concrete versions of our interface and have them work correctly with the underlying code that would not change between deployments.


Link to comment
Share on other sites

×
×
  • Create New...