Sha256: 4a48baaeb566779c031747bc311751c85f9e890352b2070c2695caf1894fd3ba

Contents?: true

Size: 1.1 KB

Versions: 15

Compression:

Stored size: 1.1 KB

Contents

require File.dirname(__FILE__) + '/../system_test_helper'


class ProjectSimpleTest < Test::Unit::TestCase

  def setup
    @results_path = "#{SYSTEM_TEST_ROOT}/simple/build/tests/results"
    
    ENV['CEEDLING_MAIN_PROJECT_FILE'] = File.join(SYSTEM_TEST_ROOT, 'project_simple.yml')

    ceedling_execute('directories', 'clobber')
  end

  def teardown
  end


  should "run all tests and verify test results" do

    # tell rake to execute all tests; use '--trace' to see problem if rake run explodes
    ceedling_execute('test:all', '--trace')
    
    results = fetch_test_results(@results_path, 'test_stuff');
    
    assert_equal(7, results[:counts][:total])
    assert_equal(2, results[:counts][:passed])
    assert_equal(1, results[:counts][:failed])
    assert_equal(4, results[:counts][:ignored])

    results = fetch_test_results(@results_path, 'test_other_stuff');
    
    assert_equal(4, results[:counts][:total])
    assert_equal(2, results[:counts][:passed])
    assert_equal(2, results[:counts][:failed])
    assert_equal(0, results[:counts][:ignored])

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ceedling-0.19.0 test_graveyard/system/project_simple_test.rb
ceedling-0.18.0 test_graveyard/system/project_simple_test.rb
ceedling-0.17.0 test_graveyard/system/project_simple_test.rb
ceedling-0.16.0 test_graveyard/system/project_simple_test.rb
ceedling-0.15.6 test_graveyard/system/project_simple_test.rb
ceedling-0.15.5 test_graveyard/system/project_simple_test.rb
ceedling-0.15.4 test_graveyard/system/project_simple_test.rb
ceedling-0.15.3 test_graveyard/system/project_simple_test.rb
ceedling-0.15.2 test_graveyard/system/project_simple_test.rb
ceedling-0.15.1 test_graveyard/system/project_simple_test.rb
ceedling-0.15.0 test_graveyard/system/project_simple_test.rb
ceedling-0.13.0 test_graveyard/system/project_simple_test.rb
ceedling-0.13.0.rc1 test_graveyard/system/project_simple_test.rb
ceedling-0.0.2 new_project_template/vendor/ceedling/test/system/project_simple_test.rb
ceedling-0.0.1 new_project_template/vendor/ceedling/test/system/project_simple_test.rb