Mislav Marohnić
a8afbdb306
improve start/shutdown of test servers
...
- give more time for test server to start
- shutdown both test and proxy server on failure
2013-08-11 14:03:23 +02:00
Mislav Marohnić
0a1deaf173
add integration tests for HTTP proxy support
...
Spins up a proxy server in a separate process, runs a few requests
through it with each adapter to verify that both proxy support and basic
authentication take effect.
2013-07-27 00:29:44 +02:00
Mislav Marohnić
eed09439f7
have script/server log to stdout when called directly
2013-07-27 00:29:44 +02:00
Mislav Marohnić
872b45a781
configure script/test
to not tolerate Ruby warnings
...
This makes CI fail if code is added to the project that generates
warnings in Ruby's verbose mode.
2013-06-25 05:55:26 +02:00
Mislav Marohnić
150b5e6c7d
output the test server log if it fails to boot up
2013-04-04 03:32:26 +02:00
Mislav Marohnić
c2adfbf918
rewrite test script in bash
...
The HTTP server is now started in a subprocess, not a thread. Running it
in a Ruby thread had all sorts of problems on different Rubies, such as
random failures on Rubinius.
The new script also avoids starting the HTTP server if not needed, e.g.
if filtering arguments have been used to select only the non-adapter tests.
The script dumps the server log to stdout if any tests failed on Travis.
Avoids auto-starting the debugger because it blocks for input in Rubinius
https://travis-ci.org/lostisland/faraday/jobs/5956815
2013-04-04 01:33:36 +02:00
Mislav Marohnić
26e9869f0b
fix test runner after move to minitest
...
`testrb` utility is gone from minitest. `autorun` is needed if you want
the test to actually run
2012-12-28 15:53:27 +01:00
technoweenie
9bcad6fb20
document the scripts
2012-12-28 01:44:13 -07:00
technoweenie
306ed766dc
add script/generate_certs
2012-12-28 01:44:09 -07:00
Mislav Marohnić
b0d9a14459
fix OpenSSL JRuby loading bug on Travis
...
The error was:
NameError: uninitialized constant OpenSSL::OPENSSL_VERSION
It seems to choke when "openssl" is required in a thread.
Not always, though.
2012-08-16 18:21:20 +02:00
Mislav Marohnić
9b3923f62c
move WEBrick SSL config to script/test
2012-08-16 18:21:00 +02:00
Mislav Marohnić
43f8079f24
script/test: try avoid rbx glitch
...
rbx in 1.9 mode on Travis:
wrong status line: "GET /echo HTTP/1.1"
http://travis-ci.org/#!/technoweenie/faraday/jobs/2141589
2012-08-16 18:20:23 +02:00
Mislav Marohnić
924cf57e7c
script/test: avoid using Timeout while waiting for server
2012-08-16 18:20:20 +02:00
Mislav Marohnić
62958fa955
fix script/test exit status
2012-08-16 18:19:42 +02:00
Lars Gierth
a6d90f3506
Don't buffer test logs
2012-08-15 19:36:44 +02:00
Lars Gierth
e15b51b3bb
Fix test shebang
...
/usr/bin/env "officially" treats options as part of the filename.
More info in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/237208
2012-08-13 01:53:25 +02:00
Mislav Marohnić
76dec1e506
script/test: support extra args for test/unit after "--"
...
Example
$ script/test net_http -- -n /timeout/
2012-08-12 15:59:46 +02:00
Mislav Marohnić
0ae3789bf4
script/test: nicer message when bundle is out of date
2012-08-12 15:59:46 +02:00
Mislav Marohnić
d407323ec1
increase script/test timeout to hopefully fix rbx
...
References http://travis-ci.org/#!/technoweenie/faraday/jobs/2100372
2012-08-12 15:59:46 +02:00
Mislav Marohnić
e6787c144b
script/test
spins up test server, runs test suite
2012-06-19 11:15:11 +02:00