Home > Uncategorized > More on Maven JUnit 4 testing

More on Maven JUnit 4 testing

In order for Surefire Maven plugin to recognize JUnit test classes their names must end in …Test

for example:

MyTests.java – will be ignored (even though it is annotated with @Test)

Advertisements
Categories: Uncategorized Tags: , , ,
  1. rasmus
    November 21, 2009 at 12:42 am

    they could also be starting with a Test…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: