<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20130329164935729626 {
        LINE-HEIGHT: 1.5; MARGIN: 10px; FONT-FAMILY: Segoe UI; COLOR: #000080; FONT-SIZE: 10.5pt
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Segoe UI; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.18094">
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px
}
OL {
        MARGIN-TOP: 0px
}
UL {
        MARGIN-TOP: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I have a question about current Automatic testing process.</DIV>
<DIV>When one guy finished a piece of code on the library folder about the 
Backend logic. </DIV>
<DIV> </DIV>
<DIV>Should he follows some instructions before check in code besides 
Code-review?</DIV>
<DIV>1.  UT implementation</DIV>
<DIV>2.  Regression --> this will be checked by CI Job</DIV>
<DIV>3.  running regression and UT on his dev box?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>In my mind, the fomal processes should be:</DIV>
<DIV>1.  add logic code</DIV>
<DIV>2. add UT code</DIV>
<DIV>3. test on dev box</DIV>
<DIV>4. run UT & regression test on dev box</DIV>
<DIV>5. code review after pass 1-4</DIV>
<DIV>6. checkin code</DIV>
<DIV>7. check CI build</DIV>
<DIV>.....</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>thanks</DIV>
<DIV> </DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>adam</SPAN></DIV></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:adamgsoc2013@gmail.com">adam</A></DIV>
<DIV><B>Date:</B> 2013-03-26 18:17</DIV>
<DIV><B>To:</B> <A 
href="mailto:phpmyadmin-devel@lists.sourceforge.net">phpmyadmin-devel</A></DIV>
<DIV><B>Subject:</B> Re: Re: [Phpmyadmin-devel] Automatic 
testing</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20130329164935729626>
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.18094">
<DIV>thanks MichalČihař,</DIV>
<DIV> </DIV>
<DIV>> 
You don't have to learn everything from the code, we have much of that</DIV>
<DIV>
<DIV>>documented: http://wiki.phpmyadmin.net/pma/Development</DIV></DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>
<DIV>> 
Because they are not run in any testcase and they are not included in</DIV>
<DIV>> coverage report because of that.</DIV>
<DIV> </DIV>
<DIV>right, we should increase the code coverage of Backend class since there 
are logic related. and the render php may be changed easily.</DIV>
<DIV> </DIV>
<DIV>thanks,</DIV></DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>adam</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:michal@cihar.com">MichalČihař</A></DIV>
<DIV><B>Date:</B> 2013-03-25 17:54</DIV>
<DIV><B>To:</B> <A 
href="mailto:phpmyadmin-devel@lists.sourceforge.net">phpmyadmin-devel</A></DIV>
<DIV><B>Subject:</B> Re: [Phpmyadmin-devel] Automatic 
testing</DIV></DIV></DIV>
<DIV>
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>first of all it is not needed to CC all my emails, using mailing list</DIV>
<DIV>is enough :-).</DIV>
<DIV> </DIV>
<DIV>Dne Sat, 23 Mar 2013 18:18:36 +0800</DIV>
<DIV>adam <adamgsoc2013@gmail.com> napsal(a):</DIV>
<DIV> </DIV>
<DIV>> I have more thinkings on the Phpmyadmin Automatic testing after reading more codes.</DIV>
<DIV>> ========================Code Learning====================</DIV>
<DIV>> Following is my code learning:</DIV>
<DIV> </DIV>
<DIV>You don't have to learn everything from the code, we have much of that</DIV>
<DIV>documented:</DIV>
<DIV> </DIV>
<DIV>http://wiki.phpmyadmin.net/pma/Development</DIV>
<DIV> </DIV>
<DIV>> 1.  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?</DIV>
<DIV> </DIV>
<DIV>Yes for links and for backward compatibility with non AJAX versions.</DIV>
<DIV> </DIV>
<DIV>> 2.  From the code coverage report page: http://ci.phpmyadmin.net/job/phpMyAdmin%203.5/cloverphp/? </DIV>
<DIV>> I found that a lot of file is not included. such as the php file on the ROOT folder.</DIV>
<DIV> </DIV>
<DIV>Because they are not run in any testcase and they are not included in</DIV>
<DIV>coverage report because of that.</DIV>
<DIV> </DIV>
<DIV>> About the topic, at least two things should be done:</DIV>
<DIV>> 1.  create more test cases to increase the code-coverage of the test-suite </DIV>
<DIV>> From the following data,</DIV>
<DIV>> Total48.55%11386 / 2345248.04%368 / 76615.79%9 / 57</DIV>
<DIV>>  libraries47.45%10894 / 2296048.04%368 / 76615.79%9 / 57</DIV>
<DIV> </DIV>
<DIV>Yes, that's one of the goals for this GSoC project.</DIV>
<DIV> </DIV>
<DIV>> 2.  set up the necessary scripts to automate this. </DIV>
<DIV>> https://github.com/adamgsoc2013/phpmyadmin/tree/master/scripts </DIV>
<DIV> </DIV>
<DIV>Pretty much everything about testing is automated in build.xml in</DIV>
<DIV>project root.</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Michal Čihař | http://cihar.com | http://blog.cihar.com</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------------------------------------------------------</DIV>
<DIV>Everyone hates slow websites. So do we.</DIV>
<DIV>Make your web apps faster with AppDynamics</DIV>
<DIV>Download AppDynamics Lite for free today:</DIV>
<DIV>http://p.sf.net/sfu/appdyn_d2d_mar</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>Phpmyadmin-devel mailing list</DIV>
<DIV>Phpmyadmin-devel@lists.sourceforge.net</DIV>
<DIV>https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</DIV>
<DIV> </DIV></DIV></DIV></DIV></BODY></HTML>