Examples of verifyErrorFreeLog()


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

    }

    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()" );
    }
View Full Code Here

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

    }

    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" );
View Full Code Here

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

{
    // !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" );
View Full Code Here

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

    // 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" );
View Full Code Here

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

    // 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()" );
    }
View Full Code Here

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

    // !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" );
View Full Code Here

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

    extends SurefireIntegrationTestCase
{
    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" );
View Full Code Here

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

    private String[] doTest( SurefireLauncher forkMode )
    {
        forkMode.sysProp( "testProperty", "testValue_${surefire.threadNumber}" );
        final OutputValidator outputValidator = forkMode.executeTest();
        outputValidator.verifyErrorFreeLog().assertTestSuiteResults( 3, 0, 0, 0 );
        String[] pids = new String[3];
        for ( int i = 1; i <= pids.length; i++ )
        {
            final TestFile targetFile = outputValidator.getTargetFile( "test" + i + "-pid" );
            String pid = targetFile.slurpFile();
View Full Code Here

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

    }

    public void testDontFailIfNoTests()
    {
        final OutputValidator outputValidator = unpack().failIfNoTests( false ).executeTest();
        outputValidator.verifyErrorFreeLog();
        TestFile reportsDir = outputValidator.getSurefireReportsFile( "" );
        assertFalse( "Unexpected reports directory", reportsDir.exists() );
    }

    public void test48CategoriesFailWhenNoTests()
View Full Code Here

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

     */
    public void testTwoTestCaseSuite()
        throws Exception
    {
        final OutputValidator outputValidator = unpack( "junit-twoTestCaseSuite" ).executeTest();
        outputValidator.verifyErrorFreeLog().assertTestSuiteResults( 2, 0, 0, 0 );
        List<ReportTestSuite> reports = HelperAssertions.extractReports( new File[]{ outputValidator.getBaseDir() } );
        Set<String> classNames = extractClassNames( reports );
        assertContains( classNames, "junit.twoTestCaseSuite.BasicTest" );
        assertContains( classNames, "junit.twoTestCaseSuite.TestTwo" );
        assertEquals( "wrong number of classes", 2, classNames.size() );
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.