cancel
Showing results for 
Search instead for 
Did you mean: 

Should tests be performed in a particular deployment mode?

Should tests be performed in a particular deployment mode?

This is a question I've had for a little while but been unable to find a satisfying answer for. I had issues running some tests out of the box when run against a version of Magento 2 EE of one deployment mode or the other (and even then, it's taken some finagling). But a thought occured to me that of course it matters, right? You need to be testing against a production environment to... test a production environment. Have I done something drastically wrong in setting up my environment to not be able to run the tests out of the box (here meaning composer installed)?

 
1 REPLY 1

Re: Should tests be performed in a particular deployment mode?

@ambrusfernas_am we generally create development enviroment for testing our website.

 

If everything works fine in development  then we can upload it on production and test the changes there also.

The reason behind testing on development mode is that it saves the time of the developer for showing the changes and also showing error on frontend as developer doesn't needs to run command on every single change but in case of production its error logs are off for frontend and there is a need to run commands on production on every single change.

 

Thanks