dev@glassfish.java.net

Re: How to run amx QL test separately

From: Ming Zhang <Ming.Zhang_at_Sun.COM>
Date: Thu, 28 May 2009 17:05:59 -0700

Hi Sahoo,

I have checked in a new local testng.xml which contains local properties
to run amx tests in module level. Please update for
quicklook/amx/testng.xml and execute the amx tests with:
% ant -Dglassfish.home={V3 home} all

Thanks,
Ming

Sahoo wrote:
> I have some changes because of which QL is failing like this:
>
> [testng] ===============================================
> [testng] amx_tests
> [testng] Tests run: 7, Failures: 1, Skips: 6
> [testng] ===============================================
>
>
> How do I run these tests separately? First of all, which directory do
> these tests belong to? quicklook/amx I guess. I want to debug to get
> to the root of the problem. As per QuickLook_Test_Instructions.html
> found in quicklook directory, I should be able to run individual tests
> by starting server & database followed by "ant -Dglassfish.home=...
> all." That does not work for amx tests. Then, I found a README in
> quicklook/amx dir which says the following:
> ------
> Author: Lloyd.Chambers_at_sun.com
> Last modified: 11 September 2008
>
> AMX unit tests. They run fine through 'mvn test', which sets up the
> dependencies for compiling
> and running with the requisite jars (eg amx-api-10.0-SNAPSHOT.jar).
>
> Standalone 'ant build' does not work; the appropriate ant targets need
> to be set up.
> --------
>
> So, I tried "mvn test," and that fails like this:
> Project ID: org.glassfish.quicklook:admin:jar:null
>
> Reason: Cannot find parent: quicklook:org.glassfish.quicklook for
> project: org.glassfish.quicklook:admin:jar:null for project
> org.glassfish.quicklook:admin:jar:null
>
>
> Why it is so complex to run a particular test is beyond my
> understanding. So, I won't ask that question. Just tell me how I can
> run these tests separately.
>
> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>