douduiwei2831 2012-04-19 00:14
浏览 71
已采纳

Hudson - 测试框架的插件

I'm new to Hudson and I have the need to run Unit Tests of several PHP Plugins, written for different frameworks (e.g. Wordpress, Drupal and so on). To work, these plugins need to be installed into the framework and a boostrap file has to be loaded first.

I was wondering how should I proceed to configure Hudson to tell it to export the plugin from Source Control inside a subdirectory of the framework, and then run the tests. I was thinking that the framework could be installed once, together with its standard database, and never touched (I would run separate tests against different framework version). Eventually, database could be restored at every run, to make sure previous issues don't interfere with the test.

My question is: is it possible to do the above? Summarizing: - Install each framework on the system, in a folder dedicated to Hudson and with a standard database. - At each run, let Hudson restore the standard database (to prevent "contamination" from previous runs). - Let Hudson fetch plugins' files from SVN and store them in the appropriate folder, depending on the framework. - Run the tests.

Thanks in advance for all the suggestions.

  • 写回答

1条回答 默认 最新

  • doulupian8725 2012-04-19 00:20
    关注

    you may use a main job + ant configuration file for the cms itself and if it is rebuild other jobs can start from it and use the directories created by the main job.

    i've done it that way for one cms and it works, but i've used jenkins instead of hudson, dunno how big the differences are now.

    you may e.g. check for source control changes in the main job. you can tell other jobs to start whenever that main job is rebuild.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效