cuke: test file options

This commit is contained in:
Emil Tin
2014-03-22 11:36:42 +01:00
parent 7048dd754d
commit 9e10b94339
6 changed files with 88 additions and 67 deletions
+17 -1
View File
@@ -2,7 +2,23 @@
STRESS_TIMEOUT = 300
Before do |scenario|
@scenario_title = scenario.title
# feature name
case scenario
when Cucumber::Ast::Scenario
@feature_name = scenario.feature.name
when Cucumber::Ast::OutlineTable::ExampleRow
@feature_name = scenario.scenario_outline.feature.name
end
# scenario name
case scenario
when Cucumber::Ast::Scenario
@scenario_title = scenario.name
when Cucumber::Ast::OutlineTable::ExampleRow
@scenario_title = scenario.scenario_outline.name
end
@scenario_time = Time.now.strftime("%Y-%m-%dT%H:%m:%SZ")
reset_data
@has_logged_preprocess_info = false