Examples of executeTest()


Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    public void testSiblingAggregator()
        throws Exception
    {
        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.SurefireLauncher.executeTest()

    public void testReportWithAggregate()
        throws Exception
    {

        SurefireLauncher surefireLauncher = unpack().failNever();
        surefireLauncher.executeTest();
        surefireLauncher.addGoal( "-Daggregate=true" );
        OutputValidator validator = surefireLauncher.execute( "surefire-report:report" );
        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyModule2ClassTest" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    public void testReportWithoutAggregate()
        throws Exception
    {
        SurefireLauncher surefireLauncher = unpack().failNever();
        surefireLauncher.executeTest();
        surefireLauncher.reset();
        surefireLauncher.execute( "surefire-report:report" );
        OutputValidator module1 = surefireLauncher.getSubProjectValidator( "module1" );
        TestFile siteFile = module1.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    public void testWorkingDirectory()
        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()
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final SurefireLauncher child = unpack.getSubProjectLauncher( "child" );
        //child.getTargetFile( "out.txt" ).delete();
        final OutputValidator outputValidator = child.executeTest().assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( outputValidator );
    }

    public void testWorkingDirectoryChildOnlyNoFork()
        throws Exception
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    extends SurefireIntegrationTestCase
{
    public void testTestNgListenerReporter()
    {
        final SurefireLauncher verifierStarter = unpack( "testng-listener-reporter" );
        verifierStarter.executeTest().verifyErrorFree( 1 ).getTargetFile(
            "resultlistener-output.txt" ).assertFileExists().getTargetFile(
            "suitelistener-output.txt" ).assertFileExists().getTargetFile( "reporter-output.txt" ).assertFileExists();
    }

}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    extends SurefireIntegrationTestCase
{
    public void testSecurityManager()
    {
        SurefireLauncher surefireLauncher = unpack( "/surefire-34-securityManager" ).failNever();
        surefireLauncher.executeTest().assertTestSuiteResults( 2, 1, 0, 0 );
    }
}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

    public void testWithIdenticalNames()
        throws IOException
    {
        SurefireLauncher surefireLauncher = unpack( "surefire-260-testWithIdenticalNames" ).failNever();
        surefireLauncher.executeTest();
        surefireLauncher.reset();
        OutputValidator validator = surefireLauncher.addSurefireReportGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        final URI uri = siteFile.toURI();
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

        File jarFile = new File( verifier.getArtifactPath( "jcharset", "jcharset", "1.2.1", "jar" ) );
        jarFile.getParentFile().mkdirs();
        FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.jar" ), jarFile );
        FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.pom" ),
                            new File( verifier.getArtifactPath( "jcharset", "jcharset", "1.2.1", "pom" ) ) );
        unpack.executeTest().verifyErrorFree( 1 );
    }
}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.SurefireLauncher.executeTest()

        File jarFile = maven.getArtifactPath( "jcharset", "jcharset", "1.2.1", "jar" );
        File pomFile = maven.getArtifactPath( "jcharset", "jcharset", "1.2.1", "pom" );
        jarFile.getParentFile().mkdirs();
        FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.jar" ), jarFile );
        FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.pom" ), pomFile );
        unpack.executeTest().verifyErrorFree( 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.