1
0
Fork 0

add information on debugging

This commit is contained in:
Jan Christoph Uhde 2017-03-30 14:58:26 +02:00
parent b83ae2ab82
commit 9177c9b3fa
1 changed files with 16 additions and 0 deletions

View File

@ -175,6 +175,22 @@ There are several major places where unittests live:
- *js/apps/system/aardvark/test*
Debugging Tests (quick intro)
-----------------------------
runnuing single rspec test
./scripts/unittest http_server --test api-import-spec.rb
debugging rspec with gdb
server> ./scripts/unittest http_server --test api-import-spec.rb --server tcp://127.0.0.1:7777
- or -
server> ARANGO_SERVER="127.0.0.1:6666" rspec -IUnitTests/HttpInterface --format d --color UnitTests/HttpInterface/api-import-spec.rb
client> gdb --args ./build/bin/arangod --server.endpoint http+tcp://127.0.0.1:6666 --server.authentication false --log.level communication=trace ../arangodb-data-test-mmfiles
HttpInterface - RSpec Client Tests
----------------------------------
These tests work on the plain RESTfull interface of arangodb, and thus also test invalid HTTP-requests and so forth, plus check error handling in the server.