OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | January 2007 Index

<--  Date Index  --> <--  Thread Index  -->

Re: R: [exoplatform] How can I run unit test?


0. see docs.exoplatform
1. uptate your maven
2. try to run "mvn -Dexo.test.skip=false test" command within
D:\java\projects\v2.x\exo-jcr\services\jcr\impl\
folder.
3. make sure u have tags (pom.xml ) like
 <testSourceDirectory>src/test</testSourceDirectory>
and
<testResources>
      <testResource>
        <directory>src/test</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
          <include>**/*.drl</include>
          <include>**/*.vm</include>
          <include>**/*.doc</include>
          <include>**/*.xls</include>
          <include>**/*.ppt</include>
          <include>**/*.txt</include>
        </includes>
      </testResource>   


2007/1/23, Davide Ficano <davide.ficano@xxxxxx>:
Thanks,

when I run the maven command I receive the following error

[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but
the build is not using one.
[INFO]
------------------------------------------------------------------------

The source structure is complete

I imagine this problem is related to maven but I don't know maven very well
:-(

-----Messaggio originale-----
Da: hoa pham [mailto: phamvuxuanhoa@xxxxxxxxx] Per conto di Hoa Pham
Inviato: martedì 23 gennaio 2007 12.44
A: Davide Ficano
Cc: exoplatform@xxxxxxxxxxxxx
Oggetto: Re: [exoplatform] How can I run unit test?

Davide Ficano wrote:
> I need to understand how to run a specific unit test (configuration, libs
> dependencies and so on...)
>
> somebody may help me?
>
> thanks in advance
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the exoplatform@xxxxxxxxxxxxx
mailing list.
> To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxxxxxxxx
> For general help: mailto: sympa@xxxxxxxxxxxxx?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
Maybe you want to run Junit test to test service?If true,  you can run
it as following step:
1. go to the source folder containt the test.
2. Using command:  mvn test -Dexo.test.skip=false
-Dexo.test.includes=TestFile
example, I have file TestExample.java, I can use:
- mvn test - Dexo.test.skip=false -Dexo.test.includes=TestExample
- mvn test -Dexo.test.skip=false -Dexo.test.includes=TestE*
...
Best regards,

--
Hoa Pham
eXoPlatform Viet Nam's Team
Ha Noi, Viet Nam

YM: phamvuxuanhoa
Skype: phamvuxuanhoa







--
You receive this message as a subscriber of the exoplatform@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto: exoplatform-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





--
Best regards,
Vitaliy

<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.