Package com.intellij.execution.configurations.coverage

Examples of com.intellij.execution.configurations.coverage.CoverageEnabledConfiguration


  @NotNull
  private static RunContentDescriptor doCoverage(@NotNull ExecutionResult executionResult,
                                                 @NotNull final ExecutionEnvironment env,
                                                 @NotNull final KarmaServer server) {
    final KarmaRunConfiguration runConfiguration = (KarmaRunConfiguration) env.getRunProfile();
    CoverageEnabledConfiguration coverageEnabledConfiguration = CoverageEnabledConfiguration.getOrCreate(runConfiguration);
    CoverageHelper.resetCoverageSuit(runConfiguration);
    final String coverageFilePath = coverageEnabledConfiguration.getCoverageFilePath();
    RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, env);
    final RunContentDescriptor descriptor = contentBuilder.showRunContent(env.getContentToReuse());
    if (coverageFilePath != null) {
      KarmaCoveragePeer coveragePeer = getCoveragePeer(server);
      coveragePeer.startCoverageSession(new KarmaCoverageSession() {
View Full Code Here


    @Nullable
    @Override
    public RunContentDescriptor execute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
      FileDocumentManager.getInstance().saveAllDocuments();
      JstdRunConfiguration runConfiguration = (JstdRunConfiguration) environment.getRunProfile();
      CoverageEnabledConfiguration coverageEnabledConfiguration = CoverageEnabledConfiguration.getOrCreate(runConfiguration);
      String coverageFilePath = coverageEnabledConfiguration.getCoverageFilePath();
      JstdRunProfileState jstdState = new JstdRunProfileState(environment, runConfiguration.getRunSettings(), coverageFilePath);
      ExecutionResult executionResult = jstdState.executeWithServer(myServer);

      RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, environment);
      final RunContentDescriptor descriptor = contentBuilder.showRunContent(environment.getContentToReuse());
View Full Code Here

TOP

Related Classes of com.intellij.execution.configurations.coverage.CoverageEnabledConfiguration

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.