Sha256: d9c1e06a5ed471ef15bb917d72ef798baf7c75cc80b81e4ef54eb389e5332ae0

Contents?: true

Size: 1.24 KB

Versions: 67

Compression:

Stored size: 1.24 KB

Contents

require 'hybrid_platforms_conductor/test_report'

module HybridPlatformsConductor

  module HpcPlugins

    module TestReport

      class MyTestReport < HybridPlatformsConductor::TestReport

        # Are dependencies met before using this plugin?
        # [API] - This method is optional
        #
        # Result::
        # * Boolean: Are dependencies met before using this plugin?
        def self.valid?
          true
        end

        # Add a Mixin to the DSL parsing the platforms configuration file.
        # This can be used by any plugin to add plugin-specific configuration getters and setters, accessible later from NodesHandler instances.
        # An optional initializer can also be given.
        # [API] - Those calls are optional
        module MyDSLExtension

          attr_accessor :my_property

          # Initialize the DSL
          def init_my_dsl_extension
            @my_property = 42
          end

        end
        self.extend_config_dsl_with MyDSLExtension, :init_my_dsl_extension

        # Handle tests reports
        def report
          puts "#{@tested_nodes.size} nodes have been tested."
          puts "#{@tests.select { |test| !test.errors.empty? }.size} tests have failed."
        end

      end

    end

  end

end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.2.4 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.2.3 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.2.2 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.2.1 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.2.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.1.1 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.1.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.0.4 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.0.3 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.0.2 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.0.1 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-33.0.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.18.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.17.1 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.17.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.16.4 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.16.3 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.16.2 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.16.1 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample
hybrid_platforms_conductor-32.16.0 lib/hybrid_platforms_conductor/hpc_plugins/test_report/my_test_report.rb.sample