Module: Minitest
- Defined in:
- lib/minitest/snapshot_ui_plugin.rb
Defined Under Namespace
Classes: SnapshotUIReporter
Class Method Summary collapse
Class Method Details
.plugin_snapshot_ui_init(_options) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/minitest/snapshot_ui_plugin.rb', line 12 def plugin_snapshot_ui_init() return unless SnapshotUI.snapshot_taking_enabled? SnapshotUI.exit_if_not_configured! reporter << SnapshotUIReporter.new SnapshotUI.clear_snapshots_in_progress end |
.plugin_snapshot_ui_options(opts, _options) ⇒ Object
6 7 8 9 10 |
# File 'lib/minitest/snapshot_ui_plugin.rb', line 6 def (opts, ) opts.on "--take-snapshots", "Take UI snapshots" do ENV["TAKE_SNAPSHOTS"] = "true" end end |