def step_I_run_the_feature_with_the_formatter(context, formatter): # When /^I run the feature with the (\w+) formatter$/ do |formatter| # features.length.should == 1 # run_feature features.first, formatter # end command_util.ensure_workdir_exists(context) command_util.ensure_context_resource_exists(context, "features", []) command = "behave --format={0} {1}".format(formatter, context.features[0]) context.command_result = command_shell.run(command, cwd=context.workdir)
def step_i_run_command(context, command): """ Run a command as subprocess, collect its output and returncode. """ command_util.ensure_workdir_exists(context) context.command_result = command_shell.run(command, cwd=context.workdir) if False and DEBUG: print("XXX run_command: {0}".format(command)) print("XXX run_command.outout {0}".format(context.command_result.output))
def step_i_run_command(context, command): """ Run a command as subprocess, collect its output and returncode. """ command_util.ensure_workdir_exists(context) context.command_result = command_shell.run(command, cwd=context.workdir) command_util.workdir_save_coverage_files(context.workdir) if False and DEBUG: print(u"run_command: {0}".format(command)) print(u"run_command.output {0}".format(context.command_result.output))