comparison doc/RUNNING_TESTS @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents 433d4f72a19b
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
7 Running Tests 7 Running Tests
8 ============= 8 =============
9 9
10 Run `rake --tasks test` to see available tests. 10 Run `rake --tasks test` to see available tests.
11 Run `rake test` to run the entire test suite (except the tests for the 11 Run `rake test` to run the entire test suite (except the tests for the
12 Apache perl module Redmine.pm, see below). 12 Apache perl module Redmine.pm and Capybara tests, see below).
13 13
14 You can run `ruby test/unit/issue_test.rb` for running a single test case. 14 You can run `ruby test/unit/issue_test.rb` for running a single test case.
15 15
16 Before running tests, you need to configure both development 16 Before running tests, you need to configure both development
17 and test databases. 17 and test databases.
56 Then, you can run the tests with: 56 Then, you can run the tests with:
57 `ruby test\extra\redmine_pm\repository_subversion_test.rb` 57 `ruby test\extra\redmine_pm\repository_subversion_test.rb`
58 58
59 If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER 59 If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER
60 environment variable to specify another host. 60 environment variable to specify another host.
61
62 Running Capybara tests
63 ======================
64
65 You need to have PhantomJS WebDriver listening on port 4444:
66 `phantomjs --webdriver 4444`
67
68 Capybara tests can be run with:
69 `rake test:ui`