tag:blogger.com,1999:blog-4110180.post2344829550103924189..comments2025-07-21T06:33:41.604-07:00Comments on Tapestry Central: Tests: Auto Launch Application, or Expect Running?Howard Lewis Shiphttp://www.blogger.com/profile/04486596490758986709noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4110180.post-40189195187155853542012-02-28T08:08:00.777-08:002012-02-28T08:08:00.777-08:00I&#39;d kind of assume (in this scenario) that the...I&#39;d kind of assume (in this scenario) that the command-line build would spin up the app as well, but the in-IDE test suite would expect the app to be already running.Howard Lewis Shiphttps://www.blogger.com/profile/04486596490758986709noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-66552262131189737012012-02-28T02:22:49.439-08:002012-02-28T02:22:49.439-08:00If one is using TestNG then it&#39;s easy to add m...If one is using TestNG then it&#39;s easy to add method that checks is application already running and if not then it will start jetty + app.<br /><br />As for myself: anything that developers wrote has to start application. <br />Anything that QA writes runs against some instance of application (for most of the time it&#39;s nightlyMichał Grucahttps://www.blogger.com/profile/00672953404604806278noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-33742086181465682812012-02-25T09:10:08.611-08:002012-02-25T09:10:08.611-08:00Our test suite is in a separate (Eclipse, Maven) p...Our test suite is in a separate (Eclipse, Maven) project and expects the application to run already. <br /><br />It&#39;s easier that way for devs because they can run tests (or part of the tests) to the in-IDE running instance. And it&#39;s easier for the QA people because they can run the tests against our QA instance.<br /><br />Our previous acceptance test used to start the app instance embedded and also use some services directly. We changed that because it grew bigger, was hard to debug and QA could not see what was going on.<br /><br />Our current test is built with cucumber-jvm and Selenium Web Driver.<br /><br />A very good source of ideas and best practices for us was <a href="http://www.amazon.com/Continuous-Delivery-Deployment-Automation-Addison-Wesley/dp/0321601912" rel="nofollow">Continuous Delivery</a>Christian Köberlhttps://www.blogger.com/profile/14600446952776546041noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-29056393620514143662012-02-24T04:58:15.692-08:002012-02-24T04:58:15.692-08:00Used such pattern on my earlier non-tapestry proje...Used such pattern on my earlier non-tapestry projects:<br />start application-&gt;execute selenium tests-&gt;stop application<br />Everything was configured in maven pom. Application was started with jetty plugin. So it makes possible to test the whole web application without need to restart container.<br /><br />Also there was another pattern on one project:<br />application build-&gt;deploy-&gt;tests build-&gt;run tests<br />In this way application and its tests was separated into different projects.Anonymoushttps://www.blogger.com/profile/15815964804382426510noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-60358459803567482162012-02-23T18:37:41.030-08:002012-02-23T18:37:41.030-08:00It&#39;s less effort to require the application to...It&#39;s less effort to require the application to be running. It&#39;s more dangerous in my opinion. I&#39;m a big fan of a single command from a fresh checkout that works. And works the same for a developer as it does for a CI build.<br /><br />It takes more effort to have the tests spin up the app. It means that external portions of the app need to be faked out. It means that your app needs to support a light-weight database. It means effort around (re)creating the schema. Etc.<br /><br />There are lots of benefits though too. Who says the whole app needs to be started? What if some tests are only interested in functional tests against one layer (i.e. the UI)? The layer beneath can be faked out. More effort again, but it ensures a clean separation between UI and the service layer.Curious Attempt Bunnyhttps://www.blogger.com/profile/04654980649772473807noreply@blogger.com