From c8a25386d39d49d9ce5135a413f19c416456299e Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sun, 3 Feb 2013 15:49:48 +0900 Subject: Put .rdoc at the end of the files named RUNNING_UNIT_TESTS So that they are printed nicely on GitHub. --- actionpack/RUNNING_UNIT_TESTS | 27 --------------------------- actionpack/RUNNING_UNIT_TESTS.rdoc | 27 +++++++++++++++++++++++++++ activerecord/RUNNING_UNIT_TESTS | 31 ------------------------------- activerecord/RUNNING_UNIT_TESTS.rdoc | 31 +++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 actionpack/RUNNING_UNIT_TESTS create mode 100644 actionpack/RUNNING_UNIT_TESTS.rdoc delete mode 100644 activerecord/RUNNING_UNIT_TESTS create mode 100644 activerecord/RUNNING_UNIT_TESTS.rdoc diff --git a/actionpack/RUNNING_UNIT_TESTS b/actionpack/RUNNING_UNIT_TESTS deleted file mode 100644 index 1b29abd2d1..0000000000 --- a/actionpack/RUNNING_UNIT_TESTS +++ /dev/null @@ -1,27 +0,0 @@ -== Running with Rake - -The easiest way to run the unit tests is through Rake. The default task runs -the entire test suite for all classes. For more information, checkout the -full array of rake tasks with "rake -T" - -Rake can be found at http://rake.rubyforge.org - -== Running by hand - -To run a single test suite - - rake test TEST=path/to/test.rb - -which can be further narrowed down to one test: - - rake test TEST=path/to/test.rb TESTOPTS="--name=test_something" - -== Dependency on Active Record and database setup - -Test cases in the test/active_record/ directory depend on having -activerecord and sqlite installed. If Active Record is not in -actionpack/../activerecord directory, or the sqlite rubygem is not installed, -these tests are skipped. - -Other tests are runnable from a fresh copy of actionpack without any configuration. - diff --git a/actionpack/RUNNING_UNIT_TESTS.rdoc b/actionpack/RUNNING_UNIT_TESTS.rdoc new file mode 100644 index 0000000000..1b29abd2d1 --- /dev/null +++ b/actionpack/RUNNING_UNIT_TESTS.rdoc @@ -0,0 +1,27 @@ +== Running with Rake + +The easiest way to run the unit tests is through Rake. The default task runs +the entire test suite for all classes. For more information, checkout the +full array of rake tasks with "rake -T" + +Rake can be found at http://rake.rubyforge.org + +== Running by hand + +To run a single test suite + + rake test TEST=path/to/test.rb + +which can be further narrowed down to one test: + + rake test TEST=path/to/test.rb TESTOPTS="--name=test_something" + +== Dependency on Active Record and database setup + +Test cases in the test/active_record/ directory depend on having +activerecord and sqlite installed. If Active Record is not in +actionpack/../activerecord directory, or the sqlite rubygem is not installed, +these tests are skipped. + +Other tests are runnable from a fresh copy of actionpack without any configuration. + diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS deleted file mode 100644 index bdd8834dcb..0000000000 --- a/activerecord/RUNNING_UNIT_TESTS +++ /dev/null @@ -1,31 +0,0 @@ -== Setup - -If you don't have the environment set make sure to read - - http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#testing-active-record. - -== Running the Tests - -You can run a particular test file from the command line, e.g. - - $ ruby -Itest test/cases/base_test.rb - -To run a specific test: - - $ ruby -Itest test/cases/base_test.rb -n test_something_works - -You can run with a database other than the default you set in test/config.yml, using the ARCONN -environment variable: - - $ ARCONN=postgresql ruby -Itest test/cases/base_test.rb - -You can run all the tests for a given database via rake: - - $ rake test_mysql - -The 'rake test' task will run all the tests for mysql, mysql2, sqlite3 and postgresql. - -== Custom Config file - -By default, the config file is expected to be at the path test/config.yml. You can specify a -custom location with the ARCONFIG environment variable. diff --git a/activerecord/RUNNING_UNIT_TESTS.rdoc b/activerecord/RUNNING_UNIT_TESTS.rdoc new file mode 100644 index 0000000000..bdd8834dcb --- /dev/null +++ b/activerecord/RUNNING_UNIT_TESTS.rdoc @@ -0,0 +1,31 @@ +== Setup + +If you don't have the environment set make sure to read + + http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#testing-active-record. + +== Running the Tests + +You can run a particular test file from the command line, e.g. + + $ ruby -Itest test/cases/base_test.rb + +To run a specific test: + + $ ruby -Itest test/cases/base_test.rb -n test_something_works + +You can run with a database other than the default you set in test/config.yml, using the ARCONN +environment variable: + + $ ARCONN=postgresql ruby -Itest test/cases/base_test.rb + +You can run all the tests for a given database via rake: + + $ rake test_mysql + +The 'rake test' task will run all the tests for mysql, mysql2, sqlite3 and postgresql. + +== Custom Config file + +By default, the config file is expected to be at the path test/config.yml. You can specify a +custom location with the ARCONFIG environment variable. -- cgit v1.2.3