Are you sure you are using the latest surefire ?
Can you run with -X ?

Tom

On 3/20/07, Marcos Silva Pereira <[EMAIL PROTECTED]> wrote:
Ok, I now that this is a so much frequent question, but I can't find a neat
thread about this issue. I already have take a look at surefire plugin doc
and JIRA without success. In surefire how
to<http://maven.apache.org/plugins/maven-surefire-plugin/howto.html>you
can see this statement:

"Which providers are available is controlled simply by the inclusion of the
appropriate dependencies (ie, junit:junit for JUnit, org.testng:testng
4.7+for TestNG). Since this is required to compile the test classes
anyway, no
additional configuration is required."

JUnit 4 is configured in the following way:

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.2</version>
    <scope>test</scope>
</dependency>

But I catch some test failures when my tests except some exception:

@Test(expected = IllegalStateException.class)
public final void testSomethingBah() throws Exception {
...
}

So, how I can configure Maven/Surefire to correctly run JUnit 4 tests?

Kind Regards,

--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com


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

Reply via email to