Mercurial > hg > soundsoftware-site
comparison doc/RUNNING_TESTS @ 1526:404aa68d4227
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 11 Sep 2014 12:46:20 +0100 |
parents | 261b3d9a4903 |
children |
comparison
equal
deleted
inserted
replaced
1493:a5f2bdf3b486 | 1526:404aa68d4227 |
---|---|
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 and |
15 `ruby test/unit/issue_test.rb -n test_create` for running a single test. | |
15 | 16 |
16 Before running tests, you need to configure both development | 17 Before running tests, you need to configure both development |
17 and test databases. | 18 and test databases. |
18 | 19 |
19 Creating test repositories | 20 Creating test repositories |
56 Then, you can run the tests with: | 57 Then, you can run the tests with: |
57 `ruby test\extra\redmine_pm\repository_subversion_test.rb` | 58 `ruby test\extra\redmine_pm\repository_subversion_test.rb` |
58 | 59 |
59 If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER | 60 If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER |
60 environment variable to specify another host. | 61 environment variable to specify another host. |
62 | |
63 Running Capybara tests | |
64 ====================== | |
65 | |
66 You need to have PhantomJS WebDriver listening on port 4444: | |
67 `phantomjs --webdriver 4444` | |
68 | |
69 Capybara tests can be run with: | |
70 `rake test:ui` |