Module: AppMap::Cucumber
- Defined in:
- lib/appmap/cucumber.rb
Defined Under Namespace
Classes: Provider4, ProviderBefore4, ProviderStruct, ScenarioAttributes
Class Method Summary
collapse
Class Method Details
.enabled? ⇒ Boolean
49
50
51
|
# File 'lib/appmap/cucumber.rb', line 49
def enabled?
ENV['APPMAP'] == 'true'
end
|
.write_scenario(scenario, appmap) ⇒ Object
41
42
43
44
45
46
47
|
# File 'lib/appmap/cucumber.rb', line 41
def write_scenario(scenario, appmap)
appmap['metadata'] = update_metadata(scenario, appmap['metadata'])
scenario_filename = AppMap::Util.scenario_filename(appmap['metadata']['name'])
FileUtils.mkdir_p 'tmp/appmap/cucumber'
File.write(File.join('tmp/appmap/cucumber', scenario_filename), JSON.generate(appmap))
end
|