Mercurial > hg > soundsoftware-site
diff doc/RUNNING_TESTS @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | 433d4f72a19b |
children |
line wrap: on
line diff
--- a/doc/RUNNING_TESTS Fri Jun 14 09:05:06 2013 +0100 +++ b/doc/RUNNING_TESTS Tue Jan 14 14:37:42 2014 +0000 @@ -9,9 +9,10 @@ Run `rake --tasks test` to see available tests. Run `rake test` to run the entire test suite (except the tests for the -Apache perl module Redmine.pm, see below). +Apache perl module Redmine.pm and Capybara tests, see below). -You can run `ruby test/unit/issue_test.rb` for running a single test case. +You can run `ruby test/unit/issue_test.rb` for running a single test case and +`ruby test/unit/issue_test.rb -n test_create` for running a single test. Before running tests, you need to configure both development and test databases. @@ -58,3 +59,12 @@ If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER environment variable to specify another host. + +Running Capybara tests +====================== + +You need to have PhantomJS WebDriver listening on port 4444: +`phantomjs --webdriver 4444` + +Capybara tests can be run with: +`rake test:ui`