Sha256: 58d6a2f2d391616bc097116684306e716778254c242e5dd749855732e337b52c

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 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

6 entries across 6 versions & 1 rubygems

Version Path
ceedling-0.25.0 test_graveyard/system/project_simple_test.rb
ceedling-0.24.0 test_graveyard/system/project_simple_test.rb
ceedling-0.22.0 test_graveyard/system/project_simple_test.rb
ceedling-0.21.0 test_graveyard/system/project_simple_test.rb
ceedling-0.20.3 test_graveyard/system/project_simple_test.rb
ceedling-0.20.2 test_graveyard/system/project_simple_test.rb