lib/cucumber/cli/main.rb in cucumber-0.3.5 vs lib/cucumber/cli/main.rb in cucumber-0.3.6

- old
+ new

@@ -1,10 +1,10 @@ require 'optparse' require 'cucumber' require 'ostruct' require 'cucumber/parser' -require 'cucumber/formatter' +require 'cucumber/formatter/color_io' require 'cucumber/cli/language_help_formatter' require 'cucumber/cli/configuration' module Cucumber module Cli @@ -38,11 +38,15 @@ visitor = configuration.build_formatter_broadcaster(step_mother) step_mother.visitor = visitor # Needed to support World#announce visitor.visit_features(features) - failure = step_mother.steps(:failed).any? || + failure = if configuration.wip? + step_mother.scenarios(:passed).any? + else + step_mother.scenarios(:failed).any? || (configuration.strict? && step_mother.steps(:undefined).any?) + end end def load_plain_text_features features = Ast::Features.new parser = Parser::FeatureParser.new