Jump to content

Unit tests with prestashop ?


GuillaumeWP

Recommended Posts

Hi all,

 

I would like to know if someone has already tried to do some unit tests on their specific development with prestashop ?

 

I tried to use phpUnit from pear package, but I failed to initialize prestashop environement within unit tests ...

My guess is that autoloading feature of phpunit / prestashop cause a conflict or something like this, but i'm not sure.

When I execute "phpunit" command, no output were generated.

 

If anyone succeed in doing some unit tests with phpUnit and prestashop, feedback is welcome.

If you succeed with any other framework, let me know which one.

 

 

regards,

Link to comment
Share on other sites

  • 1 month later...

Hi

 

I have managed to seup the correct folders and I a working TestHelper, I just need to figure out the correct order of autloading the classes so that I can get a proper bootstrap for my tests.

 

Any info would be appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...