Sha256: 3c320bc2516047cb5e7b187c247ff4b1d6570fa424f8be5a2fb355619d3cdecc

Contents?: true

Size: 1.42 KB

Versions: 36

Compression:

Stored size: 1.42 KB

Contents

module HybridPlatformsConductorTest

  module Helpers

    module TestsRunnerHelpers

      # Register test plugins in a tests runner instance
      #
      # Parameters::
      # * *tests_runner* (TestsRunner): The Tests Runner instance that need the plugins
      # * *tests_plugins* (Hash<Symbol, Class>): List of tests plugins, per test name
      def register_test_plugins(tests_runner, tests_plugins)
        tests_runner.instance_variable_set(:@tests_plugins, tests_plugins)
      end

      # Register tests report plugins in a tests runner instance
      #
      # Parameters::
      # * *tests_runner* (TestsRunner): The Tests Runner instance that need the plugin
      # * *tests_report_plugins* (Hash<Symbol, Class>): List of tests plugins, per test name
      def register_tests_report_plugins(tests_runner, tests_report_plugins)
        tests_runner.instance_variable_set(:@reports_plugins, tests_report_plugins)
      end

      # Get a test Tests Runner
      #
      # Result::
      # * Deployer: Tests Runner on which we can do testing
      def test_tests_runner
        @tests_runner = HybridPlatformsConductor::TestsRunner.new logger: logger, logger_stderr: logger, config: test_config, cmd_runner: test_cmd_runner, platforms_handler: test_platforms_handler, nodes_handler: test_nodes_handler, actions_executor: test_actions_executor, deployer: test_deployer unless @tests_runner
        @tests_runner
      end

    end

  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.0.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.18.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.17.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.17.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.16.4 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.16.3 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.16.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.16.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.16.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.15.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.14.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.13.4 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.13.3 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.13.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.13.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.13.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.12.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.11.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.11.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-32.11.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb