-
-
Save mattwynne/563100 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $:.unshift(File.dirname(__FILE__) + '/lib') unless $:.include?(File.dirname(__FILE__) + '/lib') | |
| #TODO: Why not just cucumber!!! | |
| require 'cucumber/cli/main' | |
| class TagExpression | |
| def limits | |
| [] | |
| end | |
| end | |
| class Configuration | |
| def options | |
| { :tag_expression => TagExpression.new } | |
| end | |
| def support_to_load | |
| [] | |
| end | |
| def step_defs_to_load | |
| [] | |
| end | |
| def feature_files | |
| [] | |
| end | |
| def build_runner(step_mother, io) | |
| Cucumber::Ast::TreeWalker.new(step_mother, formatters, @options, nil) | |
| end | |
| def formatters | |
| [] | |
| end | |
| def wip? | |
| false | |
| end | |
| def strict? | |
| false | |
| end | |
| end | |
| configuration = Configuration.new | |
| runtime = Cucumber::Runtime.new(configuration) | |
| result = runtime.run | |
| result.failure? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment