Module: AppMap::Cucumber
- Defined in:
- lib/appmap/cucumber.rb
Defined Under Namespace
Classes: Provider4, ProviderBefore4, ProviderStruct, ScenarioAttributes
Constant Summary collapse
- APPMAP_OUTPUT_DIR =
File.join(AppMap.output_dir, "cucumber")
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
61 62 63 |
# File 'lib/appmap/cucumber.rb', line 61 def enabled? AppMap.recording_enabled?(:cucumber) end |
.init ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/appmap/cucumber.rb', line 46 def init AppMap::DetectEnabled.discourage_conflicting_recording_methods :cucumber warn "Configuring AppMap recorder for Cucumber" FileUtils.mkdir_p APPMAP_OUTPUT_DIR end |
.run ⇒ Object
65 66 67 |
# File 'lib/appmap/cucumber.rb', line 65 def run init end |
.write_scenario(scenario, appmap) ⇒ Object
54 55 56 57 58 59 |
# File 'lib/appmap/cucumber.rb', line 54 def write_scenario(scenario, appmap) appmap["metadata"] = (scenario, appmap["metadata"]) scenario_filename = AppMap::Util.scenario_filename(appmap["metadata"]["name"]) AppMap::Util.write_appmap(File.join(APPMAP_OUTPUT_DIR, scenario_filename), appmap) end |