Re: Unit Testing Issues

2008-06-03 Thread Mark-E

Looks like the build cannot connect to the database in order to get the data
needed for the integration tests. The Ant build dloes it ok but the Maven
build fails all these tests becasue it cannot connect. I have put the
properties file that has the connection information in src/test/resources
and all the test code is in src/test/java. It may be more that it is a
configuration issue rather the na Maven issue. 

I am going to keep researching and going over the build script to try and
figure this one out. 

Regards,
Mark


Geoffrey Wiseman wrote:
> 
> On Tue, Jun 3, 2008 at 9:26 AM, Mark-E <[EMAIL PROTECTED]> wrote:
> 
>>  I am working with a project in which I am having issue running unit
>> tests.
>> The project is a combination of stratight unit tests and integration
>> tests.
>> Seems that the unit tests run finr but the integration tests all fail.
> 
> 
> Fail in what way?
> 
> 
>> I
>> judt found a reference to this in some codehaus docs
>>
>> http://docs.codehaus.org/pages/viewpage.action?pageId=62120
>>
>> I am not sure if this is the case still in Maven 2, which I am using, or
>> not.
> 
> 
> I haven't seen that document  before, but I can tell you that it's
> certainly
> possible to have integration tests and unit tests in the same project,
> I've
> got a project like that now, although there's certainly some merit to
> separating them into distinct sub-projects.
> 
> When you're done with your reading and attempts, if it's still not
> working,
> come back and let us know what you're having trouble with.
> 
>   - Geoffrey
> -- 
> Geoffrey Wiseman
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17626576.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unit Testing Issues

2008-06-03 Thread Mark-E

After I posted this I did some additional searching and found a few links
that might help me out. One of which is:

http://www.nabble.com/-m2--Using-the-integration-test-phase-td3620425.html

I will look into this further and see if I can get my tests working.

Sorry for not doing more diligent searching before posting.

Regards,

Mark


Mark-E wrote:
> 
> Hi,
>   I am working with a project in which I am having issue running unit
> tests. The project is a combination of stratight unit tests and
> integration tests. Seems that the unit tests run finr but the integration
> tests all fail. I judt found a reference to this in some codehaus docs
> 
> http://docs.codehaus.org/pages/viewpage.action?pageId=62120
> 
> I am not sure if this is the case still in Maven 2, which I am using, or
> not. 
> 
> Just wondering how others out there handle running unit tests and
> integration tests together. I would like to migrate to Maven however if I
> cannot do these tests easily, it kind of shoots the whole thing down. 
> 
> Our Ant build process handles it fine now and I could simply just run an
> Ant task to do the unit tests but then why use Maven if I end up claling a
> bunch of Ant tasks. 
> 
> Thanks! 
> 
> Mark
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17623773.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unit Testing Issues

2008-06-03 Thread Mark-E

Hi,
  I am working with a project in which I am having issue running unit tests.
The project is a combination of stratight unit tests and integration tests.
Seems that the unit tests run finr but the integration tests all fail. I
judt found a reference to this in some codehaus docs

http://docs.codehaus.org/pages/viewpage.action?pageId=62120

I am not sure if this is the case still in Maven 2, which I am using, or
not. 

Just wondering how others out there handle running unit tests and
integration tests together. I would like to migrate to Maven however if I
cannot do these tests easily, it kind of shoots the whole thing down. 

Our Ant build process handles it fine now and I could simply just run an Ant
task to do the unit tests but then why use Maven if I end up claling a bunch
of Ant tasks. 

Thanks! 

Mark

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17623488.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: code location for junit and cobetura plugins

2008-04-28 Thread Mark-E

Hi Salvador,
   Thanks, I will give that a try.

Mark


Salvador Diaz wrote:
> 
> Have you tried declaring a 
> path/to/your/tests in the 
> build section of your pom ?
> 
> Regards,
> 
> Salvador
> Mark-E wrote:
>> Hi,
>>I have several projects that I currently build with maven. I want to
>> start using the junit and cobertura plugins however the junit code does
>> not
>> live under the src folder. It is in /test. 
>>
>> Is there a parameter that I can set that tells maven the location to look
>> in
>> for the junti code, for example, ${basedir}/tests, for both these
>> plugins? 
>>
>> I have seen the one in the cobertura plugin but I think it assumes the
>> junit
>> code lives under the src folder . 
>>
>> I would perfer not to move the code or to try and use an ant task to
>> relocate it during the build if I can set the location with a simple
>> parameter. 
>>
>> Thanks,
>> Mark
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/code-location-for-junit-and-cobetura-plugins-tp16850553s177p16941924.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



code location for junit and cobetura plugins

2008-04-24 Thread Mark-E

Hi,
   I have several projects that I currently build with maven. I want to
start using the junit and cobertura plugins however the junit code does not
live under the src folder. It is in /test. 

Is there a parameter that I can set that tells maven the location to look in
for the junti code, for example, ${basedir}/tests, for both these plugins? 

I have seen the one in the cobertura plugin but I think it assumes the junit
code lives under the src folder . 

I would perfer not to move the code or to try and use an ant task to
relocate it during the build if I can set the location with a simple
parameter. 

Thanks,
Mark

-- 
View this message in context: 
http://www.nabble.com/code-location-for-junit-and-cobetura-plugins-tp16850553s177p16850553.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven-buildnumber-plugin question

2008-04-14 Thread Mark-E

Hello,
   I am using version 0.9.6 of this plugin and I have a question. As I
currently have the plugin setup, using the phase of , when I run a
mvn compile, it incrememnts the number. I only want the build number to
increment if I run a mvn package. Now I looked at setting the phase to
 but it builds the jar first then runs this so the jar version is
null.

Does anyone know how to set this up so that it only runs when I do a mvn
package and it runs before the jar is created? I looked into the phase of
pre-package but that does not work in maven 2.0.9.

Thanks,
Mark


-- 
View this message in context: 
http://www.nabble.com/maven-buildnumber-plugin-question-tp16682676s177p16682676.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]