From photark-dev-return-566-apmail-incubator-photark-dev-archive=incubator.apache.org@incubator.apache.org Fri Apr 30 14:14:15 2010 Return-Path: Delivered-To: apmail-incubator-photark-dev-archive@minotaur.apache.org Received: (qmail 19873 invoked from network); 30 Apr 2010 14:14:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 14:14:15 -0000 Received: (qmail 25280 invoked by uid 500); 30 Apr 2010 14:14:15 -0000 Delivered-To: apmail-incubator-photark-dev-archive@incubator.apache.org Received: (qmail 25242 invoked by uid 500); 30 Apr 2010 14:14:14 -0000 Mailing-List: contact photark-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: photark-dev@incubator.apache.org Delivered-To: mailing list photark-dev@incubator.apache.org Received: (qmail 25234 invoked by uid 99); 30 Apr 2010 14:14:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 14:14:14 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.47] (HELO mail-pw0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 14:14:08 +0000 Received: by pwj5 with SMTP id 5so123713pwj.6 for ; Fri, 30 Apr 2010 07:13:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.14.21 with SMTP id r21mr880733rvi.144.1272636826110; Fri, 30 Apr 2010 07:13:46 -0700 (PDT) Received: by 10.231.190.17 with HTTP; Fri, 30 Apr 2010 07:13:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Apr 2010 19:43:45 +0530 Message-ID: Subject: Re: Browser Support From: Avdhesh Yadav To: photark-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=000e0cd1196ef2cc9f048574d9d7 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1196ef2cc9f048574d9d7 Content-Type: text/plain; charset=ISO-8859-1 Hi, Is there already any project in apache using integration test folder ?. I am interested in looking into the streatgy followed by other apache projects in this situation. What suggested by Suho is also good.I think we should commit the Test Cases and then later on we can integrate the cargo plug-in. -- Avdhesh Yadav http://www.avdheshyadav.com http://twitter.com/yadavavdhesh On Fri, Apr 30, 2010 at 12:16 AM, Luciano Resende wrote: > On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah > wrote: > > On 28 April 2010 12:30, Avdhesh Yadav wrote: > >> > >> Updated to Dojo 1.4.2 > >> > > thanks Avidash, > > > > I'm now integrating HtmlUnit with PhotArk. > > but when I'm doing so I encountered this problem.. > > > > For the HtmlUnit test to pass we should first start the server before > > testing. > > Otherwise the test case fails saying that it couldn't connect to the > server. > > > > the problem is, when automating HtmlUnit testing we cant always start the > > server > > and if we don't start the server the build will be failing. > > > > here we cannot use > > > > maven.skip.test=true > > > > or smiler alternatives because they will skip all the tests. > > > > Therefore I'm suggesting the to rename these htmlunit test cases as > > XXXXTestBrwser > > by renaming these the maven-surefire-plugin wont test these test cases. > > this is because we have defined test as > > **/*TestCase.java > > > > and it we want to test these HtmlUnit test cases > > we can start the server and run > > > > mvn -Dtest=*TestBrwser test > > > > which will only run the test cases wish ends with TestBrwser.java > > > > Please give your suggesting and let me know whether I'm implementing this > in > > the correct way ? > > > > Regards > > Suho > > > > > > > This seems like chicken/egg thing, but mainly because the test is > being added together with the UI module. Here are some possible ideas > to overcome this issue : > > - Move tests to a integration test folder > (e.g /iTest/photark) > > - Use some maven plugin that would handle the integration with the > application server (and manage the lifecycle for example) and run the > tests afterwards (e.g cargo plugin [1]) > > I hope this can give you some ideas on how to solve the problem, but i > understand it does not have all the details... > > > [1] http://cargo.codehaus.org/Maven2+plugin > [2] http://cargo.codehaus.org/Tomcat+6.x > > > -- > Luciano Resende > http://people.apache.org/~lresende > http://twitter.com/lresende1975 > http://lresende.blogspot.com/ > --000e0cd1196ef2cc9f048574d9d7--