Mercurial > hg > soundsoftware-site
comparison doc/RUNNING_TESTS @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
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` |