Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
#228 Deprecated bb-cumber rerun-related API
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrzyzanowski committed Sep 19, 2018
1 parent 18431c2 commit 6fd7239
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
7 changes: 6 additions & 1 deletion bb-cumber/src/main/java/com/cognifide/qa/bb/ConfigKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
*/
package com.cognifide.qa.bb;

/**
* @deprecated since 1.6.0, removing re-run feature
*/
@Deprecated
public final class ConfigKeys {

public static final String BOBCAT_REPORT_STATISTICS_PATH = "bobcat.report.statistics.path";

public static final String BOBCAT_REPORT_STATISTICS_PERCENTAGE = "bobcat.report.statistics.retryPercentage";
public static final String BOBCAT_REPORT_STATISTICS_PERCENTAGE =
"bobcat.report.statistics.retryPercentage";

private ConfigKeys() {
//Config class...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import com.cognifide.qa.bb.provider.selenium.webdriver.WebDriverRegistry;
import com.cognifide.qa.bb.utils.PropertyUtils;

import cucumber.api.java.hu.De;
import cucumber.api.junit.Cucumber;
import cucumber.runtime.Backend;
import cucumber.runtime.Runtime;
Expand Down Expand Up @@ -150,10 +151,12 @@ private boolean canRerunFailedTests() {
return !haveNoTests && !haveTooManyTests;
}

@Deprecated
File getFeatureFile() {
return featureFile;
}

@Deprecated
File getStatisticsFile() {
return statisticsFile;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@
import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.commons.lang3.CharEncoding;
import org.apache.commons.lang3.StringUtils;
import org.junit.runner.Description;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunListener;

/**
* @deprecated since 1.6.0, removing re-run feature
*/
@Deprecated
class BobcumberListener extends RunListener {

private static final String FEATURE_STATEMENT = "feature";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

import com.google.common.collect.Sets;

/**
* @deprecated since 1.6.0, removing re-run feature
*/
@Deprecated
class FeatureMap {

private static final String COLON = ":";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @deprecated since 1.6.0, removing re-run feature
*/
@Deprecated
class StatisticsHelper {

private static final String NO_STATISTICS_FILE_FOUND_MESSAGE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

/**
* Add this annotation to Cucumber's test. Bobcat will store information about failed tests to file.
* @deprecated since 1.6.0, removing re-run feature
*/
@Deprecated
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface StoreFailedResults {
Expand Down

0 comments on commit 6fd7239

Please sign in to comment.