Examples of RunListener


Examples of hudson.model.listeners.RunListener

    }
   
    @Test
    public void testCheckWorkspaces() throws Exception{
        //turn off run listener
        RunListener listener = RunListener.all().get(DiskUsageBuildListener.class);
        j.jenkins.getExtensionList(RunListener.class).remove(listener);
        Slave slave1 = j.createOnlineSlave();
        Slave slave2 = j.createOnlineSlave();
        FreeStyleProject project = j.jenkins.createProject(FreeStyleProject.class, "project");
        project.setAssignedLabel(slave1.getSelfLabel());
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        JUnitCoreParameters jUnitCoreParameters = new JUnitCoreParameters( junitProps );

        final Map<String, TestSet> testSetMap = new ConcurrentHashMap<String, TestSet>();

        RunListener listener =
            ConcurrentRunListener.createInstance( testSetMap, reporterFactory, false, false, consoleLogger );

        TestsToRun testsToRun = new TestsToRun( Arrays.<Class>asList( TestClassTest.class ) );

        org.junit.runner.notification.RunListener jUnit4RunListener = new JUnitCoreRunListener( listener, testSetMap );
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

    {
    }

    public void testSetCompleted( ReportEntry result )
    {
        final RunListener reporterManager = getRunListener();
        for ( TestSet testSet : classMethodCounts.values() )
        {
            testSet.replay( reporterManager );
        }
        reporterManagerThreadLocal.remove();
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        throws TestSetFailedException, ExecutionException
    {
        ReporterFactory reporterManagerFactory = DefaultReporterFactory.defaultNoXml();

        final HashMap<String, TestSet> classMethodCounts = new HashMap<String, TestSet>();
        RunListener reporter =
            ConcurrentRunListener.createInstance( classMethodCounts, reporterManagerFactory, parallelClasses, false,
                                                  new DefaultConsoleReporter( System.out ) );
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporter );

        JUnitCoreRunListener runListener = new JUnitCoreRunListener( reporter, classMethodCounts );
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

    private void executeSingleClass( ReporterFactory reporterManagerFactory, Class testClass )
        throws TestSetFailedException
    {
        this.options.put( "suitename", testClass.getName() );

        RunListener reporter = reporterManagerFactory.createReporter();
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporter );

        startTestSuite( reporter, this );

        final Map optionsToUse = isJUnitTest( testClass ) ? junitOptions : options;
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        {
            testNgReportsDirectory = new File( reportsDirectory, "testng-native-results" );
            junitReportsDirectory = new File( reportsDirectory, "testng-junit-results" );
        }

        RunListener reporterManager = reporterFactory.createReporter();
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporterManager );
        startTestSuite( reporterManager, this );

        Class[] testClasses = testNgTestClasses.toArray( new Class[testNgTestClasses.size()] );
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        if ( testSet == null )
        {
            throw new TestSetFailedException( "Unable to find test set '" + testSetName + "' in suite" );
        }

        RunListener reporter = reporterManagerFactory.createReporter();
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporter );

        startTestSuite( reporter, this );

        TestNGExecutor.run( new Class[]{ testSet.getTestClass() }, this.testSourceDirectory, this.options, reporter, this, reportsDirectory, testMethodPattern );
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

                testsToRun = scanClassPath();
            }
        }

        ReporterFactory reporterFactory = providerParameters.getReporterFactory();
        final RunListener reporter = reporterFactory.createReporter();
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporter );

        final String smClassName = System.getProperty( "surefire.security.manager" );
        if ( smClassName != null )
        {
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        }
        else
        {
            final Map<String, TestSet> testSetMap = new ConcurrentHashMap<String, TestSet>();

            RunListener listener =
                ConcurrentRunListener.createInstance( testSetMap, reporterFactory,
                                                      isParallelTypes(),
                                                      isParallelMethodsAndTypes(), consoleLogger );
            ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) listener );
View Full Code Here

Examples of org.apache.maven.surefire.report.RunListener

        if ( testSets == null )
        {
            throw new IllegalStateException( "You must call locateTestSets before calling execute" );
        }
//        RunListener reporter = new SynchronizedReporterManager( reporterManagerFactory.createReporter() );
        RunListener reporter = reporterManagerFactory.createReporter();
        ConsoleOutputCapture.startCapture( (ConsoleOutputReceiver) reporter );

        TestNGDirectoryTestSuite.startTestSuite( reporter, this );
        TestNGExecutor.run( this.suiteFilePaths, this.testSourceDirectory, this.options, reporter, this,
                            reportsDirectory );
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.