Sha256: 59c74b2932a38333af7d7be6f72a63968e502d5f707ff7d33d0708478bab94ec

Contents?: true

Size: 1.14 KB

Versions: 14

Compression:

Stored size: 1.14 KB

Contents

require 'plugin'
require '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

14 entries across 14 versions & 1 rubygems

Version Path
ceedling-0.13.0 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.13.0.rc1 plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.12.2 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.12.1 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.12.0 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.11.2 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.11.1 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.11.0 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.10.0 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb
ceedling-0.9.4 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb
ceedling-0.9.2 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb
ceedling-0.9.0 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb
ceedling-0.0.18 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb
ceedling-0.0.17 new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb