Examples of assertTestSuiteResults()


Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    public void testTestNGRunCategoryAB()
    {
        OutputValidator validator = unpackTestNG().groups( "CategoryA&&CategoryB" ).debugLogging().executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "BasicTest.testInCategoriesAB()" );
        validator.verifyTextInLog( "CategoryCTest.testInCategoriesAB()" );
    }

    public void testTestNGRunCategoryNotC()
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    public void testTestNGRunCategoryNotC()
    {
        OutputValidator validator = unpackTestNG().groups( "!CategoryC" ).debugLogging().executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 8, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 2" );
        validator.verifyTextInLog( "catB: 2" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 1" );
        validator.verifyTextInLog( "mA: 2" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

{
    public void testWellFormedXmlFailures()
    {
        OutputValidator outputValidator = unpack( "/surefire-224-wellFormedXmlFailures" ).executeTest();

        outputValidator.assertTestSuiteResults( 4, 0, 4, 0 );

        ReportTestSuite suite =
            HelperAssertions.extractReports( ( new File[]{ outputValidator.getBaseDir() } ) ).get( 0 );
        List<org.apache.maven.plugins.surefire.report.ReportTestCase> testCases = suite.getTestCases();
        assertEquals( "Wrong number of test case objects", 4, testCases.size() );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    // !CategoryC
    public void testJUnitRunEmptyGroups()
    {
        OutputValidator validator = unpackJUnit().sysProp( "profile", "emptyGroups" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 5, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 2" );
        validator.verifyTextInLog( "catB: 2" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 1" );
        validator.verifyTextInLog( "NoCategoryTest.CatNone: 1" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    // CategoryA && CategoryB
    public void testJUnitRunEmptyExcludeGroups()
    {
        OutputValidator validator = unpackJUnit().sysProp( "profile", "emptyExcludedGroups" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 1" );
        validator.verifyTextInLog( "catB: 1" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 0" );
        validator.verifyTextInLog( "mA: 1" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    // CategoryA && CategoryB
    public void testTestNGRunEmptyExcludeGroups()
    {
        OutputValidator validator = unpackTestNG().sysProp( "profile", "emptyExcludedGroups" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "BasicTest.testInCategoriesAB()" );
        validator.verifyTextInLog( "CategoryCTest.testInCategoriesAB()" );
    }

    // !CategoryC
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

    // !CategoryC
    public void testTestNGRunEmptyGroups()
    {
        OutputValidator validator = unpackTestNG().sysProp( "profile", "emptyGroups" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 8, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 2" );
        validator.verifyTextInLog( "catB: 2" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 1" );
        validator.verifyTextInLog( "mA: 2" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

{
    public void testJUnitRunCategoryAB()
    {
        OutputValidator validator = unpackJUnit().groups( "junit4.CategoryA AND junit4.CategoryB" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 1" );
        validator.verifyTextInLog( "catB: 1" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 0" );
        validator.verifyTextInLog( "mA: 1" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final OutputValidator child = getPreparedChild( unpack );
        unpack.executeTest().verifyErrorFreeLog();
        child.assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( child );
    }

    public void testWorkingDirectoryNoFork()
        throws Exception
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.assertTestSuiteResults()

        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final OutputValidator child = getPreparedChild( unpack );
        unpack.forkNever().executeTest().verifyErrorFreeLog();
        child.assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( child );
    }

    public void testWorkingDirectoryChildOnly()
        throws Exception
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.