lib/appmap/cucumber.rb in appmap-0.91.0 vs lib/appmap/cucumber.rb in appmap-0.92.0
- old
+ new
@@ -1,7 +1,8 @@
# frozen_string_literal: true
+require 'appmap'
require 'appmap/util'
require 'fileutils'
module AppMap
module Cucumber
@@ -53,10 +54,10 @@
AppMap::Util.write_appmap(File.join(APPMAP_OUTPUT_DIR, scenario_filename), appmap)
end
def enabled?
- ENV['APPMAP'] == 'true'
+ AppMap.recording_enabled?(:cucumber)
end
def run
init
end