Module: CloudTest

Defined in:
lib/cloud_test.rb,
lib/cloud_test/cli.rb,
lib/cloud_test/core.rb,
lib/cloud_test/version.rb,
lib/cloud_test/saucelabs.rb,
lib/cloud_test/lambdatest.rb,
lib/cloud_test/browserstack.rb,
lib/cloud_test/generators/config.rb,
lib/cloud_test/cross_browser_testing.rb,
lib/cloud_test/generators/cloud_test_env.rb

Defined Under Namespace

Modules: Generators Classes: Browserstack, CLI, Core, CrossBrowserTesting, Error, Lambdatest, Saucelabs

Constant Summary collapse

VERSION =
"1.0.7"

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/cloud_test.rb', line 7

def self.enabled?
  ENV.has_key?('CLOUD_TEST')
end

.upload_status_to_provider(success:, session_id:, reason: "Unknown") ⇒ Object



11
12
13
14
15
16
17
# File 'lib/cloud_test.rb', line 11

def self.upload_status_to_provider(success:, session_id:, reason: "Unknown")
  begin
    Core.upload_status success: success, session_id: session_id, reason: reason
  rescue StandardError => e
    puts e.message
    end
end