summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-09-21 13:05:50 +0200
committerAzul <azul@riseup.net>2016-09-21 13:05:50 +0200
commite1a78d46298d556b09bfcac0fa797b8e32b965d4 (patch)
tree2f19877e1ca435eaafe94d87c46d895d953be5d7 /test
parent6f507ed7b4f53054313173ce795ffd2cbcecd0b7 (diff)
doc: explain the purpose of different integration tests
Diffstat (limited to 'test')
-rw-r--r--test/integration/dispatcher_test.rb11
-rw-r--r--test/integration/nickserver_test.rb7
2 files changed, 18 insertions, 0 deletions
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:
#