module Gauge
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
-
Copyright © ThoughtWorks, Inc.
-
Licensed under the Apache License, Version 2.0
-
See LICENSE.txt in the project root for license information.
Public Class Methods
# File lib/gauge_screenshot.rb, line 9 def capture GaugeScreenshot.instance.capture end
@api public Custom configuration for Gauge
-
Lets you configure modules that need to be included at runtime.
-
Lets you define a custom screengrabber, which will be invoked to capture screenshot on failure.
@example
# Given there are two modules defined module Foo end module Bar end # Gauge can be configured to include these modules at runtime. Gauge.configure do |config| config.include Foo, Bar end
@example
# Default behaviour is to capture the active desktop at the point of failure. # The implementation should return a byte array of the image. Gauge.configure do |config| config.screengrabber = -> { return File.binread("/path/to/screenshot")} end
# File lib/configuration.rb, line 33 def configure(&block) Configuration.instance.instance_eval &block end