Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (24 sloc) 1.258 kb
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
1 Running the suite
2 =================
3
4 Since the notifier must run on many versions of Rails, running its test suite is slightly different than you may be used to.
5
091dfdd @shime add sanity to rescue_action_in_public_without_airbrake call
shime authored
6 You should start by trusting the .rvmrc file. We come in peace.
7
8 Then execute the following command:
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
9
10 rake vendor_test_gems
44def7d @gabebw Don't use bundle exec rake
gabebw authored
11 # NOT: bundle exec rake vendor_test_gems
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
12
091dfdd @shime add sanity to rescue_action_in_public_without_airbrake call
shime authored
13 This command will download the various versions of Rails and other gems that the notifier must be tested against.
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
14
15 Then, to start the suite, run
16
44def7d @gabebw Don't use bundle exec rake
gabebw authored
17 rake
091dfdd @shime add sanity to rescue_action_in_public_without_airbrake call
shime authored
18 # NOT: bundle exec rake
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
19
e237fe1 @shime valid mock responses
shime authored
20 Finally, this test suite runs against many rails versions. If you
21 prefer to run it against specific version hit
22
23 rake cucumber:rails:<VERSION>
24
6fbc22f @shime add a note for testing against different frameworks
shime authored
25 You can also specify to test only against the certain frameworks we
26 support (rack, rake and sinatra) by executing
27
28 rake cucumber:<FRAMEWORK>
29
30 This tasks are not printed out with `rake -T` since they're added
31 dynamically in the Rakefile.
32
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
33
34 For Maintainers
35 ================
36
091dfdd @shime add sanity to rescue_action_in_public_without_airbrake call
shime authored
37 When developing the Airbrake gem, be sure to use the integration test against an existing project on staging before pushing to master.
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
38
fd2f489 @gabebw Remove leftover RDOC formatting
gabebw authored
39 ./script/integration_test.rb <test project's api key> <staging server hostname>
0ffb687 @r00k Convert TESTING to markdown. Copy edit it a bit.
r00k authored
40
fd2f489 @gabebw Remove leftover RDOC formatting
gabebw authored
41 ./script/integration_test.rb <test project's api key> <staging server hostname> secure
Something went wrong with that request. Please try again.