Sha256: 44a2e8ff64d52168848d6d0adb48ae2664df6c80c02dde5a8c20fb9f7cb93128

Contents?: true

Size: 862 Bytes

Versions: 67

Compression:

Stored size: 862 Bytes

Contents

module HybridPlatformsConductorTest

  # Report plugin for tests
  class ReportPlugin < HybridPlatformsConductor::Report

    class << self

      # Access the generated reports
      # Array<String>
      attr_accessor :generated_reports

    end

    # Give the list of supported locales by this report generator
    # [API] - This method is mandatory.
    #
    # Result::
    # * Array<Symbol>: List of supported locales
    def self.supported_locales
      %i[en fr]
    end

    # Create a report for a list of nodes, in a given locale
    # [API] - This method is mandatory.
    #
    # Parameters::
    # * *nodes* (Array<String>): List of nodes
    # * *locale_code* (Symbol): The locale code
    def report_for(nodes, locale_code)
      ReportPlugin.generated_reports << "Report generated for #{nodes.join(', ')} in #{locale_code}"
    end

  end

end

Version data entries

67 entries across 67 versions & 1 rubygems

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