Hi all (and especially Zarubin :-))
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
Running single test seems to work:
$ phpunit test/libraries/core/PMA_isValid_test.php PHPUnit 3.5.5 by Sebastian Bergmann.
PMA_isValid_test
testNoVarType ............ .................... testSimilarType ...... .
Time: 0 seconds, Memory: 8.25Mb
OK (39 tests, 68 assertions)
Writing code coverage data to XML file, this may take a moment.
Generating code coverage report, this may take a moment.
However there seems to be wrong configuration somewhere using backslashes instead of slashes so it creates files like build\logs\junit.xml
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
Hi all (and especially Zarubin :-))
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
...and I answer myself: I was using wrong git repo...
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
After little more hacking, the Jenkins server is set up at:
Still there are lot of things to fix, but I'm running out of time for now, so IMHO only basic phpunit testing works and should run daily.
Any hints how to fix the setup for rest are welcome (the only thing I'm aware is not configured is Selenium).
Hi.
On 13 July 2011 15:32, Michal Čihař michal@cihar.com wrote:
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
After little more hacking, the Jenkins server is set up at:
Still there are lot of things to fix, but I'm running out of time for now, so IMHO only basic phpunit testing works and should run daily.
I cant see your Jenkins configuration, but If you installed all additional tools from http://wiki.phpmyadmin.net/pma/Jenkins_Setup#Installing_additional_required_... there should be no problems in other things.
And in last build looks like all working fine. Except "500 - Internal Server Error" that happened in the middle of phpdepend task.
Currently I have no idea why some unit test failing on your server. On my PC and virtual machine all tests working fine.
Any hints how to fix the setup for rest are welcome (the only thing I'm aware is not configured is Selenium).
It will be cool if you install some additional plug in like checkstyle, tasks, dashboard-view. To make Jenkins pages more informative - http://zsv.dyndns.org/view/Reports/ And possibly some irc bot for notification and trigger jobs, like pma-build on #phpmyadmin channel.
For Selenium configuration you need to download and run selenium-server.jar. And be able to run browsers, that configured in phpunit.xml.dist file.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
And also cron_column plugin is very useful.
To avoid high load on server you can make 2 jobs on Jenkis. One which runs only phpunit target from Ant build that runs daily or after each commit. And seconds which run full build @midnight.
-- Zarubin Stas
On 14 July 2011 08:35, Stas Zarubin zarubin.stas@gmail.com wrote:
Hi.
On 13 July 2011 15:32, Michal Čihař michal@cihar.com wrote:
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
After little more hacking, the Jenkins server is set up at:
Still there are lot of things to fix, but I'm running out of time for now, so IMHO only basic phpunit testing works and should run daily.
I cant see your Jenkins configuration, but If you installed all additional tools from http://wiki.phpmyadmin.net/pma/Jenkins_Setup#Installing_additional_required_... there should be no problems in other things.
And in last build looks like all working fine. Except "500 - Internal Server Error" that happened in the middle of phpdepend task.
Currently I have no idea why some unit test failing on your server. On my PC and virtual machine all tests working fine.
Any hints how to fix the setup for rest are welcome (the only thing I'm aware is not configured is Selenium).
It will be cool if you install some additional plug in like checkstyle, tasks, dashboard-view. To make Jenkins pages more informative - http://zsv.dyndns.org/view/Reports/ And possibly some irc bot for notification and trigger jobs, like pma-build on #phpmyadmin channel.
For Selenium configuration you need to download and run selenium-server.jar. And be able to run browsers, that configured in phpunit.xml.dist file.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Hi
Dne Thu, 14 Jul 2011 08:35:51 +0300 Stas Zarubin zarubin.stas@gmail.com napsal(a):
On 13 July 2011 15:32, Michal Čihař michal@cihar.com wrote:
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
After little more hacking, the Jenkins server is set up at:
Still there are lot of things to fix, but I'm running out of time for now, so IMHO only basic phpunit testing works and should run daily.
I cant see your Jenkins configuration, but If you installed all additional tools from http://wiki.phpmyadmin.net/pma/Jenkins_Setup#Installing_additional_required_... there should be no problems in other things.
I've installed all these.
And in last build looks like all working fine. Except "500 - Internal Server Error" that happened in the middle of phpdepend task.
Probably because the jenkins itself consumes quite a lot of memory and virtual host it is running had limit to 512MB, increased it.
Currently I have no idea why some unit test failing on your server. On my PC and virtual machine all tests working fine.
Any hints how to fix the setup for rest are welcome (the only thing I'm aware is not configured is Selenium).
It will be cool if you install some additional plug in like checkstyle, tasks, dashboard-view.
I've installed all plugins listed on wiki. Though I don't see any tasks plugin there on the list, so I'm now installing and the plugin list "Task Scanner Plugin", hopefully it is the one you mean.
To make Jenkins pages more informative - http://zsv.dyndns.org/view/Reports/
I still don't get this one, maybe some more plugins are needed for it?
And possibly some irc bot for notification and trigger jobs, like pma-build on #phpmyadmin channel.
Maybe in future, for now I'd like to get basic setup working :-).
For Selenium configuration you need to download and run selenium-server.jar. And be able to run browsers, that configured in phpunit.xml.dist file.
I know, I simply lack time to set it up properly right now.
On 14 July 2011 09:43, Michal Čihař michal@cihar.com wrote:
Hi
Dne Thu, 14 Jul 2011 08:35:51 +0300 Stas Zarubin zarubin.stas@gmail.com napsal(a):
On 13 July 2011 15:32, Michal Čihař michal@cihar.com wrote:
Hi
Dne Wed, 13 Jul 2011 10:47:19 +0200 Michal Čihař michal@cihar.com napsal(a):
I started to setup testing server, however I'm somehow stuck.
I followed http://wiki.phpmyadmin.net/pma/TestingEnvironment and I believe I have all components in place. However running all tests is something I can not manage. http://wiki.phpmyadmin.net/pma/UnitTesting mentions some configuration files, but no matter what I try, the tests are not run.
After little more hacking, the Jenkins server is set up at:
Still there are lot of things to fix, but I'm running out of time for now, so IMHO only basic phpunit testing works and should run daily.
I cant see your Jenkins configuration, but If you installed all additional tools from http://wiki.phpmyadmin.net/pma/Jenkins_Setup#Installing_additional_required_... there should be no problems in other things.
I've installed all these.
And in last build looks like all working fine. Except "500 - Internal Server Error" that happened in the middle of phpdepend task.
Probably because the jenkins itself consumes quite a lot of memory and virtual host it is running had limit to 512MB, increased it.
Currently I have no idea why some unit test failing on your server. On my PC and virtual machine all tests working fine.
Any hints how to fix the setup for rest are welcome (the only thing I'm aware is not configured is Selenium).
It will be cool if you install some additional plug in like checkstyle, tasks, dashboard-view.
I've installed all plugins listed on wiki. Though I don't see any tasks plugin there on the list, so I'm now installing and the plugin list "Task Scanner Plugin", hopefully it is the one you mean.
Yes. This is short names.
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin tasks java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin dashboard-view java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin cron_column
To make Jenkins pages more informative - http://zsv.dyndns.org/view/Reports/
I still don't get this one, maybe some more plugins are needed for it?
After you install Dashboard View plugin, you need to create new view by clicking on "+" and adding some tables and charts to view. Or paste the xml that I attached in main Jenkins confing (/var/lib/jenkins/config.xml) into <views> section, affter <hudson.model.AllView>
And possibly some irc bot for notification and trigger jobs, like pma-build on #phpmyadmin channel.
Maybe in future, for now I'd like to get basic setup working :-).
For Selenium configuration you need to download and run selenium-server.jar. And be able to run browsers, that configured in phpunit.xml.dist file.
I know, I simply lack time to set it up properly right now.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Hi
Dne Thu, 14 Jul 2011 10:01:18 +0300 Stas Zarubin zarubin.stas@gmail.com napsal(a):
Yes. This is short names.
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin tasks java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin dashboard-view java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin cron_column
Please add this to wiki.
To make Jenkins pages more informative - http://zsv.dyndns.org/view/Reports/
I still don't get this one, maybe some more plugins are needed for it?
After you install Dashboard View plugin, you need to create new view by clicking on "+" and adding some tables and charts to view. Or paste the xml that I attached in main Jenkins confing (/var/lib/jenkins/config.xml) into <views> section, affter <hudson.model.AllView>
Again, something what could be mentioned on the wiki.
And possibly some irc bot for notification and trigger jobs, like pma-build on #phpmyadmin channel.
Maybe in future, for now I'd like to get basic setup working :-).
For Selenium configuration you need to download and run selenium-server.jar. And be able to run browsers, that configured in phpunit.xml.dist file.
Selenium tests should be now running as well.