org.apache.maven.surefire.junitcore
Class MavenSurefireJUnit47RunnerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.surefire.junitcore.MavenSurefireJUnit47RunnerTest
All Implemented Interfaces:
junit.framework.Test

public class MavenSurefireJUnit47RunnerTest
extends junit.framework.TestCase

TestCase that expose "No tests were executed!" on Test failure using Maven Surefire 2.6-SNAPSHOT and the JUnit 4.7 Runner.

------------------------------------------------------- T E S T S -------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.011s [INFO] Finished at: Thu Jul 15 13:59:14 CEST 2010 [INFO] Final Memory: 24M/355M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project xxxxxx: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]

junit junit 4.8.1 test

org.apache.maven.surefire surefire-booter 2.6-SNAPSHOT test org.apache.maven.plugins maven-surefire-plugin 2.6-SNAPSHOT test org.apache.maven.surefire surefire-junit47 2.6-SNAPSHOT test

Version:
$Revision: $
Author:
Aslak Knutsen

Nested Class Summary
static class MavenSurefireJUnit47RunnerTest.FailingTestClassTestNot
          Simple TestCase to force a Exception in @BeforeClass.
 
Constructor Summary
MavenSurefireJUnit47RunnerTest()
           
 
Method Summary
 void testSurefireShouldBeAbleToReportRunStatusEvenWithFailingTests()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenSurefireJUnit47RunnerTest

public MavenSurefireJUnit47RunnerTest()
Method Detail

testSurefireShouldBeAbleToReportRunStatusEvenWithFailingTests

public void testSurefireShouldBeAbleToReportRunStatusEvenWithFailingTests()
                                                                   throws Exception
Throws:
Exception


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.