Package org.apache.maven.surefire.suite

Examples of org.apache.maven.surefire.suite.RunResult


        this.skipped += testSetStats.getSkipped();
    }

    public synchronized RunResult getRunResult()
    {
        return new RunResult( completedCount, errors, failures, skipped );
    }
View Full Code Here


    public RunResult invoke( Object forkTestSet )
        throws TestSetFailedException, ReporterException
    {
        throwIfSet( System.getProperty( "invokeCrash" ) );
        return new RunResult( 1, 0, 0, 2 );
    }
View Full Code Here

        return new ForkingRunListener( originalSystemOut, testSetChannelId++, isTrimstackTrace );
    }

    public RunResult close()
    {
        return new RunResult( 17, 17, 17, 17 );
    }
View Full Code Here

            exception.expect( TestSetFailedException.class );
            JUnitCoreWrapper.execute( testsToRun, jUnitCoreParameters, customRunListeners, null );
        }
        finally
        {
            RunResult result = reporterFactory.close();
            Assert.assertEquals( "JUnit should report correctly number of test ran(Finished)",
                    1, result.getCompletedCount() );
        }
    }
View Full Code Here

        }
        final Integer getCompletedCount1 = (Integer) ReflectionUtils.invokeGetter( result, "getCompletedCount" );
        final Integer getErrors = (Integer) ReflectionUtils.invokeGetter( result, "getErrors" );
        final Integer getSkipped = (Integer) ReflectionUtils.invokeGetter( result, "getSkipped" );
        final Integer getFailures = (Integer) ReflectionUtils.invokeGetter( result, "getFailures" );
        return new RunResult( getCompletedCount1, getErrors, getFailures, getSkipped );

    }
View Full Code Here

        throws MojoExecutionException, MojoFailureException
    {

        List<ProviderInfo> providers = createProviders();

        RunResult current = RunResult.noTestsRun();

        NestedCheckedException firstForkException = null;
        for ( ProviderInfo provider : providers )
        {
            try
            {
                current = current.aggregate( executeProvider( provider, scanResult ) );
            }
            catch ( SurefireBooterForkException e )
            {
                if ( firstForkException == null )
                {
View Full Code Here

        ClassLoaderConfiguration classLoaderConfiguration = getClassLoaderConfiguration( isForking() );

        RunOrderParameters runOrderParameters =
            new RunOrderParameters( getRunOrder(), getStatisticsFileName( getConfigChecksum() ) );

        final RunResult result;
        if ( isNotForking() )
        {
            createCopyAndReplaceForkNumPlaceholder( effectiveProperties, 1 ).copyToSystemProperties();

            InPluginVMSurefireStarter surefireStarter =
View Full Code Here

  @Override
  public final void execute() throws MojoExecutionException, MojoFailureException {
    if(logErrorsToConsole()) {
          logExceptions();
    }
    final RunResult summary = readSummary();
    SurefireHelper.reportExecution(this, summary, getLog());
  }
View Full Code Here

    if (this.createSymLink) {
      createSymLink(launches);
    }

    final RunResult result = runFitNesseTests(launches);
    try {
      result.writeSummary( this.summaryFile, false, ReaderFactory.UTF_8 );
    } catch (final IOException e) {
      throw new MojoExecutionException(e.getMessage(), e);
    }
  }
View Full Code Here

    helper.setDebugMode(true);

    try {
      final TestSummary summary = helper.run(this.port, launches);
        getLog().info(summary.toString());
            final RunResult result = new RunResult(summary.right, summary.exceptions, summary.wrong, summary.ignores);
      return result;
    } catch (Exception e) {
      throw new MojoExecutionException("Exception running FitNesse tests", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.suite.RunResult

Copyright © 2018 www.massapicom. 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.