Sha256: 3c361fb37126659c919923781880a400cb5a1ccbc1767f85d971015d04d3b0fa

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper'))

module JsTestDriver
  class RunTestsTest < Test::Unit::TestCase

    def test_should_run_all_tests_by_default
      application.run_tests

      assert_run("java -jar #{runtime_config.jar_path} --serverHandlerPrefix jstd --config #{runtime_config.config_yml_path} --tests all --reset")
    end

    def test_should_run_selected_tests
      application.run_tests(:tests => 'MyTestCase.some_test')

      assert_run("java -jar #{runtime_config.jar_path} --serverHandlerPrefix jstd --config #{runtime_config.config_yml_path} --tests MyTestCase.some_test --reset")
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
js-test-driver-rails-0.5.0.pre5 test/unit/run_tests_test.rb
js-test-driver-rails-0.5.0.pre4 test/unit/run_tests_test.rb
js-test-driver-rails-0.5.0.pre3 test/unit/run_tests_test.rb