thanks MichalČihař,
You don't have to learn everything from the code, we have much of that documented: http://wiki.phpmyadmin.net/pma/Development
Yes, I am setting up the CI env on my dev box. after that, I can run the test report on my dev box, so that I can manager everything before checking code.
Because they are not run in any testcase and they are not included in coverage report because of that.
right, we should increase the code coverage of Backend class since there are logic related. and the render php may be changed easily.
thanks,
adam
From: MichalČihař Date: 2013-03-25 17:54 To: phpmyadmin-devel Subject: Re: [Phpmyadmin-devel] Automatic testing Hi
first of all it is not needed to CC all my emails, using mailing list is enough :-).
Dne Sat, 23 Mar 2013 18:18:36 +0800 adam adamgsoc2013@gmail.com napsal(a):
I have more thinkings on the Phpmyadmin Automatic testing after reading more codes. ========================Code Learning==================== Following is my code learning:
You don't have to learn everything from the code, we have much of that documented:
http://wiki.phpmyadmin.net/pma/Development
- why the db_create.php and some php page is stored on ROOT folder instead of libary folder? Is it because it for browser access? a link?
Yes for links and for backward compatibility with non AJAX versions.
- From the code coverage report page: http://ci.phpmyadmin.net/job/phpMyAdmin%203.5/cloverphp/?
I found that a lot of file is not included. such as the php file on the ROOT folder.
Because they are not run in any testcase and they are not included in coverage report because of that.
About the topic, at least two things should be done:
- create more test cases to increase the code-coverage of the test-suite
From the following data, Total48.55%11386 / 2345248.04%368 / 76615.79%9 / 57 libraries47.45%10894 / 2296048.04%368 / 76615.79%9 / 57
Yes, that's one of the goals for this GSoC project.
- set up the necessary scripts to automate this.
https://github.com/adamgsoc2013/phpmyadmin/tree/master/scripts
Pretty much everything about testing is automated in build.xml in project root.