Sha256: edec40e0a7e913c698d3014cdec6c54e564486afc6d6507beb935cf5dfe0be34

Contents?: true

Size: 1.14 KB

Versions: 24

Compression:

Stored size: 1.14 KB

Contents

require 'ceedling/plugin'
require 'ceedling/defaults'

class StdoutIdeTestsReport < Plugin

  def setup
    @result_list = []
  end

  def post_test_fixture_execute(arg_hash)
    return if not (arg_hash[:context] == TEST_SYM)

    @result_list << arg_hash[:result_file]
  end

  def post_build
    return if (not @ceedling[:task_invoker].test_invoked?)

    results = @ceedling[:plugin_reportinator].assemble_test_results(@result_list)
    hash = {
      :header => '',
      :results => results
    }

    @ceedling[:plugin_reportinator].run_test_results_report(hash) do
      message = ''
      message = 'Unit test failures.' if (hash[:results][:counts][:failed] > 0)
      message
    end
  end

  def summary
    result_list = @ceedling[:file_path_utils].form_pass_results_filelist( PROJECT_TEST_RESULTS_PATH, COLLECTION_ALL_TESTS )

    # get test results for only those tests in our configuration and of those only tests with results on disk
    hash = {
      :header => '',
      :results => @ceedling[:plugin_reportinator].assemble_test_results(result_list, {:boom => false})
    }

    @ceedling[:plugin_reportinator].run_test_results_report(hash)
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ceedling-0.31.1 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.31.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.30.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.28.3 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.28.2 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.28.1 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.27.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.25.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.24.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.22.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.21.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.20.3 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.20.2 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.19.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.18.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.17.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.16.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.15.6 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.15.5 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.15.4 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb