Examples of assertTestSuiteResults()


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

    {
        final SurefireLauncher unpack = unpack( "sibling-aggregator" );
        SurefireLauncher aggregator = unpack.getSubProjectLauncher( "aggregator" );
        aggregator.executeTest().verifyErrorFreeLog();
        OutputValidator child2 = unpack.getSubProjectValidator( "child2" );
        child2.assertTestSuiteResults( 1, 0, 0, 0 );
    }
}
View Full Code Here

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

    @Test
    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()

    SurefireLauncher launcher = unpack( "surefire-569-RunTestFromDependencyJars" );
    launcher.addGoal("test").addGoal("install");
    launcher.executeCurrentGoals();

    OutputValidator module1 = launcher.getSubProjectValidator("module1");
    module1.assertTestSuiteResults(1, 0, 0, 0);
  }
}
View Full Code Here

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

    @Test
    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()

    @Test
    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()

    @Test
    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()

    @Test
    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()

                .sysProp( "parallel", parallelMode )
                .sysProp( "threadCount", 4 )
                .withFailure()
                .executeTest();

        validator.assertTestSuiteResults( 9, 0, 3, 3 );

        validate( validator, "org.sample.module.My1Test", 1 );
        validate( validator, "org.sample.module.My2Test", 1 );
        validate( validator, "org.sample.module.My3Test", 0 );
        validateSkipped( validator, "org.sample.module.My4Test" );
View Full Code Here

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

        validator.verifyTextInLog( "testAllok to stdout" );
        validator.verifyTextInLog( "testAllok to stderr" );
        validator.verifyTextInLog( "testWithException1 to stdout" );
        validator.verifyTextInLog( "testWithException1 to stderr" );
        validator.assertTestSuiteResults( 30, 8, 4, 17 );
    }
}
View Full Code Here

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

    @Test
    public void categoryAB()
    {
        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
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.