Debian Codegraph @

features/step_definitions/cli-feature.rb

raw
1
2 Given /^I have input file\(s\) named "(.*?)"$/ do |arg1|
3 @filenames = arg1.split(/,/)
4 end
5
6 When /^I execute "(.*?)"$/ do |arg1|
7 @cmd = arg1 + ' < ' + @filenames[0]
8 end
9
10 # Then(/^I expect the named output to match the named output "(.*?)"$/) do |arg1|
11 # RegressionTest::CliExec::exec(@cmd,arg1,ignore: '(##BioVcf|date|"version":)').should be_truthy
12 # end
13
14 # Then(/^I expect the named output to match the named output "([^"]*)" in under (\d+) seconds$/) do |arg1, arg2|
15 # RegressionTest::CliExec::exec(@cmd,arg1,ignore: '(##BioVcf|date|"version":)',timeout: arg2.to_i).should be_truthy
16 # end
17
18
19 # Then(/^I expect an error and the named output to match the named output "(.*?)" in under (\d+) seconds$/) do |arg1,arg2|
20 # RegressionTest::CliExec::exec(@cmd,arg1,ignore: '(FATAL|Waiting|from|vcf|Options|Final pid)',should_fail: true,timeout:arg2.to_i).should be_truthy
21 # end
22
23 # Then(/^I expect no errors$/) do
24 # RegressionTest::CliExec::exec(@cmd, "empty").should be_truthy
25 # end