Hi Joe...

   If you are not interested to have all tests completed successfully,
you can run Maven with these options:

1) -Dmaven.test.failure.ignore
    This one will allow you to see the failures but it will not fails
the build process.

2) -Dmaven.test.skip
    This will by-pass running tests during build process.

On Mon, Sep 20, 2010 at 7:06 PM, joe <[email protected]> wrote:
> Hi,
>
> Today i checked out OpenEJB from
> http://svn.apache.org/repos/asf/openejb/trunk/openejb3
> and tried to build it.
>
> Tests run: 3356, Failures: 1, Errors: 0, Skipped: 0
>
>
> The following test failed:
>
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.core.stateless.StatelessPoolStatsTest
> -------------------------------------------------------------------------------
> Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.379 sec
> <<< FAILURE!
> testSweeps(org.apache.openejb.core.stateless.StatelessPoolStatsTest) Time
> elapsed: 0.021 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.assertTrue(Assert.java:20)
>        at junit.framework.Assert.assertTrue(Assert.java:27)
>        at
> org.apache.openejb.core.stateless.StatelessPoolStatsTest.testSweeps(StatelessPoolStatsTest.java:461)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
>        at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs

Reply via email to