Sha256: c60adad27333355ee3b82b67907bbafce5aaa4557e17547c37cbacebf2ee1f75

Contents?: true

Size: 1.4 KB

Versions: 31

Compression:

Stored size: 1.4 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
        @tests_runner
      end

    end

  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.9.4 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.9.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.9.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.9.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.8.4 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.8.3 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.8.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.8.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.8.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.7.4 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.7.3 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.7.2 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.7.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.7.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.6.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.5.1 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.5.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.4.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
hybrid_platforms_conductor-33.3.0 spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb