Hi Kjetil,

One approach I've seen used is to have a standard naming convention on your
test cases.  Maven will automatically run classes named *Test.java (and I
believe any class that starts with Test), so if you name the ones you want
to run with every test phase during a build with that convention, then name
the heavy-handed tests something like MyTestManual.java or
MyTestIntegration.java or something along those lines, then you can manually
run those test cases when it comes time.  You could also create a separate
project for the heavy-handed ones and only build that test suite manually as
needed.

Dave

On 9/3/07, Kjetil Kjernsmo <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I'm new to Maven. In fact, I'm pretty new to the Java world, I just
> dropped by
> some years ago, and I see things have progressed rapidly.
>
> I'm migrating an old project to Maven, but there is something I don't
> quite
> see how should be done.
>
> We have a bunch of heavy tests, like performance tests, some functional
> tests
> and stuff, they can run for hours, so it is not something you launch
> light-hearted. Usually, most of these tests would only be run prior to a
> deployment to production, and only against a test environment quite like
> the
> production environment.
>
> I plan to adopt test-driven development for my next project, and Maven
> seems
> will suited for that with the test phase. Also, I have seen that it has a
> integration-test phase, but that is not what I'm looking for (I think),
> since
> it seems to run before the package is even installed to the local
> repository,
> and I don't necessarily want to run it before it is on the test box.
>
> So, there is a problem here, how do I set Maven up so that I get more
> control
> of when tests are run?
>
> Kind regards
>
> Kjetil Kjernsmo
> --
> Senior Knowledge Engineer
> Direct: +47 6783 1136 | Mobile: +47 986 48 234
> Email: [EMAIL PROTECTED]
> Web: http://www.computas.com/
>
> | SHARE YOUR KNOWLEDGE |
>
> Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783
> 1000 |
> Fax:+47 6783 1001
>
> (sorry about the disclaimer...)
>
> IMPORTANT NOTICE:
> This message may contain confidential information. If you have received
> this e-mail in error, do not use, copy or distribute it. Do not open any
> attachments. Delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to