From e1a78d46298d556b09bfcac0fa797b8e32b965d4 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 21 Sep 2016 13:05:50 +0200 Subject: doc: explain the purpose of different integration tests --- test/integration/dispatcher_test.rb | 11 +++++++++++ test/integration/nickserver_test.rb | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/test/integration/dispatcher_test.rb b/test/integration/dispatcher_test.rb index 986972c..b3a50a0 100644 --- a/test/integration/dispatcher_test.rb +++ b/test/integration/dispatcher_test.rb @@ -1,6 +1,17 @@ require 'test_helper' require 'nickserver/dispatcher' +# +# Test integration between the Dispatcher and the RequestHandlers +# +# Starting from a given request we test the interaction between the dispatcher +# and the different RequestHandlers. There's a lot of combinations possible +# and we only test a couple of them to ensure the parts work together well. +# +# This does not test the server. We stub and mock the sources. The nickserver +# integration test covers these as well. +# + class Nickserver::DispatcherTest < Minitest::Test def test_empty_query diff --git a/test/integration/nickserver_test.rb b/test/integration/nickserver_test.rb index a62c7f9..06d6e29 100644 --- a/test/integration/nickserver_test.rb +++ b/test/integration/nickserver_test.rb @@ -3,6 +3,13 @@ require 'support/http_stub_helper' require 'nickserver/server' require 'json' +# Integration Test for the whole nickserver without network dependecy. +# +# These tests are meant to test the integration between the different +# components of the nickserver from the ReelServer all the way down to +# the different sources. +# These tests do not test the low level network adapter, the daemonization +# or the startup script. # # Some important notes to understanding these tests: # -- cgit v1.2.3