Codota Logo
net.masterthought.cucumber
Code IndexAdd Codota to your IDE (free)

How to use net.masterthought.cucumber

Best Java code snippets using net.masterthought.cucumber (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: damianszczepanik/cucumber-reporting

private Trends updateAndSaveTrends(Reportable reportable) {
  Trends trends = loadOrCreateTrends();
  appendToTrends(trends, reportable);
  // display only last n items - don't skip items if limit is not defined
  if (configuration.getTrendsLimit() > 0) {
    trends.limitItems(configuration.getTrendsLimit());
  }
  // save updated trends so it contains history only for the last builds
  saveTrends(trends, configuration.getTrendsStatsFile());
  return trends;
}
origin: damianszczepanik/cucumber-reporting

/**
 * Calls {@link #setTrends(File, int)} with zero limit.
 * @param trendsFile file with trends
 */
public void setTrendsStatsFile(File trendsFile) {
  setTrends(trendsFile, 0);
}
origin: damianszczepanik/cucumber-reporting

private void appendToTrends(Trends trends, Reportable result) {
  trends.addBuild(configuration.getBuildNumber(), result);
}
origin: damianszczepanik/cucumber-reporting

private Trends loadOrCreateTrends() {
  File trendsFile = configuration.getTrendsStatsFile();
  if (trendsFile != null && trendsFile.exists()) {
    return loadTrends(trendsFile);
  } else {
    return new Trends();
  }
}
origin: damianszczepanik/cucumber-reporting

  @Override
  public void prepareReport() {
    context.put("all_features", reportResult.getAllFeatures());
    context.put("report_summary", reportResult.getFeatureReport());

    context.put("classifications", configuration.getClassifications());
  }
}
origin: net.masterthought/cucumber-reporting

/**
 * Checks if the trends page should be generated and displayed.
 * @return <code>true</code> if the page with trends should be displayed
 */
public boolean isTrendsAvailable() {
  return getTrendsLimit() > -1  && isTrendsStatsFile();
}
origin: net.masterthought/cucumber-reporting

public ReportBuilder(List<String> jsonFiles, Configuration configuration) {
  this.jsonFiles = jsonFiles;
  this.configuration = configuration;
  reportParser = new ReportParser(configuration);
}
origin: damianszczepanik/cucumber-reporting

private void copyStaticResources() {
  copyResources("css", "cucumber.css", "bootstrap.min.css", "font-awesome.min.css");
  copyResources("js", "jquery.min.js", "jquery.tablesorter.min.js", "bootstrap.min.js", "Chart.min.js",
      "moment.min.js");
  copyResources("fonts", "FontAwesome.otf", "fontawesome-webfont.svg", "fontawesome-webfont.woff",
      "fontawesome-webfont.eot", "fontawesome-webfont.ttf", "fontawesome-webfont.woff2",
      "glyphicons-halflings-regular.eot", "glyphicons-halflings-regular.eot",
      "glyphicons-halflings-regular.woff2", "glyphicons-halflings-regular.woff",
      "glyphicons-halflings-regular.ttf", "glyphicons-halflings-regular.svg");
  copyResources("images", "favicon.png");
}
origin: damianszczepanik/cucumber-reporting

/**
 * Since pending and undefined steps were added later
 * there is need to fill missing data for those statuses.
 */
private void fillMissingSteps() {
  // correct only pending and undefined steps
  passedFeatures = fillMissingArray(passedFeatures);
  passedScenarios = fillMissingArray(passedScenarios);
  passedSteps = fillMissingArray(passedSteps);
  skippedSteps = fillMissingArray(skippedSteps);
  pendingSteps = fillMissingArray(pendingSteps);
  undefinedSteps = fillMissingArray(undefinedSteps);
}
origin: damianszczepanik/cucumber-reporting

/**
 * Due to the error with old implementation where total features
 * were passed instead of failures (and vice versa) following correction must be applied for trends generated
 * between release 3.0.0 and 3.1.0.
 */
private void applyPatchForFeatures() {
  for (int i = 0; i < totalFeatures.length; i++) {
    int total = totalFeatures[i];
    int failures = getFailedFeatures()[i];
    if (total < failures) {
      // this data must be changed since it was generated by invalid code
      int tmp = total;
      totalFeatures[i] = failures;
      failedFeatures[i] = tmp;
    }
  }
}
origin: damianszczepanik/cucumber-reporting

public StepObject(String location) {
  if (StringUtils.isEmpty(location)) {
    throw new ValidationException("Location cannnot be null!");
  }
  this.location = location;
}
origin: net.masterthought/cucumber-reporting

private Trends updateAndSaveTrends(Reportable reportable) {
  Trends trends = loadOrCreateTrends();
  appendToTrends(trends, reportable);
  // display only last n items - don't skip items if limit is not defined
  if (configuration.getTrendsLimit() > 0) {
    trends.limitItems(configuration.getTrendsLimit());
  }
  // save updated trends so it contains history only for the last builds
  saveTrends(trends, configuration.getTrendsStatsFile());
  return trends;
}
origin: net.masterthought/cucumber-reporting

private Trends loadOrCreateTrends() {
  File trendsFile = configuration.getTrendsStatsFile();
  if (trendsFile != null && trendsFile.exists()) {
    return loadTrends(trendsFile);
  } else {
    return new Trends();
  }
}
origin: net.masterthought/cucumber-reporting

  @Override
  public void prepareReport() {
    context.put("all_features", reportResult.getAllFeatures());
    context.put("report_summary", reportResult.getFeatureReport());

    context.put("classifications", configuration.getClassifications());
  }
}
origin: net.masterthought/cucumber-reporting

/**
 * Calls {@link #setTrends(File, int)} with zero limit.
 * @param trendsFile file with trends
 */
public void setTrendsStatsFile(File trendsFile) {
  setTrends(trendsFile, 0);
}
origin: net.masterthought/cucumber-reporting

private void appendToTrends(Trends trends, Reportable result) {
  trends.addBuild(configuration.getBuildNumber(), result);
}
origin: damianszczepanik/cucumber-reporting

/**
 * Checks if the trends page should be generated and displayed.
 * @return <code>true</code> if the page with trends should be displayed
 */
public boolean isTrendsAvailable() {
  return getTrendsLimit() > -1  && isTrendsStatsFile();
}
origin: damianszczepanik/cucumber-reporting

public ReportBuilder(List<String> jsonFiles, Configuration configuration) {
  this.jsonFiles = jsonFiles;
  this.configuration = configuration;
  reportParser = new ReportParser(configuration);
}
origin: net.masterthought/cucumber-reporting

private void copyStaticResources() {
  copyResources("css", "cucumber.css", "bootstrap.min.css", "font-awesome.min.css");
  copyResources("js", "jquery.min.js", "jquery.tablesorter.min.js", "bootstrap.min.js", "Chart.min.js",
      "moment.min.js");
  copyResources("fonts", "FontAwesome.otf", "fontawesome-webfont.svg", "fontawesome-webfont.woff",
      "fontawesome-webfont.eot", "fontawesome-webfont.ttf", "fontawesome-webfont.woff2",
      "glyphicons-halflings-regular.eot", "glyphicons-halflings-regular.eot",
      "glyphicons-halflings-regular.woff2", "glyphicons-halflings-regular.woff",
      "glyphicons-halflings-regular.ttf", "glyphicons-halflings-regular.svg");
  copyResources("images", "favicon.png");
}
origin: net.masterthought/cucumber-reporting

/**
 * Since pending and undefined steps were added later
 * there is need to fill missing data for those statuses.
 */
private void fillMissingSteps() {
  // correct only pending and undefined steps
  passedFeatures = fillMissingArray(passedFeatures);
  passedScenarios = fillMissingArray(passedScenarios);
  passedSteps = fillMissingArray(passedSteps);
  skippedSteps = fillMissingArray(skippedSteps);
  pendingSteps = fillMissingArray(pendingSteps);
  undefinedSteps = fillMissingArray(undefinedSteps);
}
net.masterthought.cucumber

Most used classes

  • ReportBuilder
  • Configuration
  • Reportable
    Defines methods required to generate single report. Implementations of this interface are used by Ve
  • CucumberReportGeneratorMojo
    Goal which generates a Cucumber Report.
  • EmptyReportable
    Defines empty reportable that is usded when the build fails.
  • ReportResult,
  • Trends,
  • ValidationException,
  • AbstractPage,
  • ErrorPage,
  • EscapeHtmlReference,
  • FailuresOverviewPage,
  • FeatureReportPage,
  • FeaturesOverviewPage,
  • OverviewReport,
  • StepsOverviewPage,
  • TagReportPage,
  • TagsOverviewPage,
  • TrendsOverviewPage
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now