PHP and source control: where to put unit tests, etc? -


I am using the market for version control, with whom I am very happy. The project is called 'branch' in every tree / source control in the market.

Currently, I have a 'main' branch for actual application, and a 'dev' branch that holds certain things like unit test, as well as user manual, etc. In this way, both apps and their related test versions are different but different.

However, I suspect that the way I am doing is not the best way. For example, if I am making the branch of release from that 'main' branch, then the branches of these releases will exit from the synchronization with the unit tests, unless I divide them in the same way.

Currently, to create a snapshot of the application, I just export all the files from that main branch and zip them, because there is nothing in the branch tree which is part of the app Not to be sent to the client.

What would be a better way to do? Should the entity go to the same 'main' branch as a test app, and if so, what is a convenient way to easily create a 'snapshot' that is equivalent to a 'daily build' in which only those files will be distributed Will the app be distributed with?

Thanks to everyone for your reply It was difficult to decide whose response is to accept the solution I have gone with, to test my trials of the 'test' sub-index of my main tree To keep within; If I do not want to distribute the tests then I can easily get it out.

You definitely want to test your unit and keep the code as close as possible. The process we follow is like this:

  libs / core / login.php Libs / Core / Process. Php Libs / Core / T / LogInstest. Php Libs / Core / T / Process Test. / Code> 

In fact, create a unit test module for each part of your code, and put it in a subdirectory, separate it from the actual code and then walk through something, find all the unit test codes. And run it before pushing it for production.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -