Skip to content

Commit

Permalink
[Core] Update the HTML formatter to use events.
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Jan 3, 2017
1 parent 3b226f6 commit 15cf206
Show file tree
Hide file tree
Showing 4 changed files with 951 additions and 112 deletions.
14 changes: 0 additions & 14 deletions core/src/main/java/cucumber/runtime/RuntimeOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,6 @@ public List<CucumberFeature> cucumberFeatures(ResourceLoader resourceLoader, Eve
public List<Object> getPlugins() {
if (!pluginNamesInstantiated) {
for (String pluginName : pluginFormatterNames) {
if (notUpdatedFormatter(pluginName)) {
System.out.println("WARNING: The " + pluginName.split(":")[0] + " formatter is not updated yet and is therefore not used.");
continue;
}
Object plugin = pluginFactory.create(pluginName);
plugins.add(plugin);
setMonochromeOnColorAwarePlugins(plugin);
Expand All @@ -327,16 +323,6 @@ public List<Object> getPlugins() {
return plugins;
}

private boolean notUpdatedFormatter(String pluginName) {
List<String> NOT_UPDATED_FORMATTERS = java.util.Arrays.asList("html");
for (String name : NOT_UPDATED_FORMATTERS) {
if (name.equals(pluginName.split(":")[0])) {
return true;
}
}
return false;
}

public Formatter formatter(ClassLoader classLoader) {
return pluginProxy(classLoader, Formatter.class);
}
Expand Down
Loading

0 comments on commit 15cf206

Please sign in to comment.