diff options
-rw-r--r-- | tests/clientapitest.cpp | 6 | ||||
-rw-r--r-- | tests/domainadaptortest.cpp | 3 | ||||
-rw-r--r-- | tests/dummyresourcetest.cpp | 5 | ||||
-rw-r--r-- | tests/genericfacadetest.cpp | 5 | ||||
-rw-r--r-- | tests/genericresourcetest.cpp | 6 | ||||
-rw-r--r-- | tests/indextest.cpp | 3 | ||||
-rw-r--r-- | tests/messagequeuetest.cpp | 3 | ||||
-rw-r--r-- | tests/pipelinetest.cpp | 3 | ||||
-rw-r--r-- | tests/resourcecommunicationtest.cpp | 3 | ||||
-rw-r--r-- | tests/storagetest.cpp | 4 |
10 files changed, 40 insertions, 1 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index 231e773..665d29b 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -28,6 +28,11 @@ public: | |||
28 | QWeakPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> > capturedResultProvider; | 28 | QWeakPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> > capturedResultProvider; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | /** | ||
32 | * Test of the client api implementation. | ||
33 | * | ||
34 | * This test works with injected dummy facades and thus doesn't write to storage. | ||
35 | */ | ||
31 | class ClientAPITest : public QObject | 36 | class ClientAPITest : public QObject |
32 | { | 37 | { |
33 | Q_OBJECT | 38 | Q_OBJECT |
@@ -85,6 +90,7 @@ private Q_SLOTS: | |||
85 | QTRY_VERIFY(!facade->capturedResultProvider); | 90 | QTRY_VERIFY(!facade->capturedResultProvider); |
86 | } | 91 | } |
87 | 92 | ||
93 | //TODO: This test doesn't belong to this testsuite | ||
88 | void resourceManagement() | 94 | void resourceManagement() |
89 | { | 95 | { |
90 | ResourceConfig::clear(); | 96 | ResourceConfig::clear(); |
diff --git a/tests/domainadaptortest.cpp b/tests/domainadaptortest.cpp index ccf9a3c..f2300cb 100644 --- a/tests/domainadaptortest.cpp +++ b/tests/domainadaptortest.cpp | |||
@@ -22,6 +22,9 @@ public: | |||
22 | } | 22 | } |
23 | }; | 23 | }; |
24 | 24 | ||
25 | /** | ||
26 | * Test of domain adaptor, that it can read and write buffers. | ||
27 | */ | ||
25 | class DomainAdaptorTest : public QObject | 28 | class DomainAdaptorTest : public QObject |
26 | { | 29 | { |
27 | Q_OBJECT | 30 | Q_OBJECT |
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 48bb7b0..ae71912 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -11,6 +11,11 @@ | |||
11 | #include "pipeline.h" | 11 | #include "pipeline.h" |
12 | #include "log.h" | 12 | #include "log.h" |
13 | 13 | ||
14 | /** | ||
15 | * Test of complete system using the dummy resource. | ||
16 | * | ||
17 | * This test requires the dummy resource installed. | ||
18 | */ | ||
14 | class DummyResourceTest : public QObject | 19 | class DummyResourceTest : public QObject |
15 | { | 20 | { |
16 | Q_OBJECT | 21 | Q_OBJECT |
diff --git a/tests/genericfacadetest.cpp b/tests/genericfacadetest.cpp index 183a62a..67320c3 100644 --- a/tests/genericfacadetest.cpp +++ b/tests/genericfacadetest.cpp | |||
@@ -13,6 +13,11 @@ | |||
13 | #include "event_generated.h" | 13 | #include "event_generated.h" |
14 | 14 | ||
15 | 15 | ||
16 | /** | ||
17 | * Test for the generic facade implementation. | ||
18 | * | ||
19 | * This test doesn't use the actual storage and thus only tests the update logic of the facade. | ||
20 | */ | ||
16 | class GenericFacadeTest : public QObject | 21 | class GenericFacadeTest : public QObject |
17 | { | 22 | { |
18 | Q_OBJECT | 23 | Q_OBJECT |
diff --git a/tests/genericresourcetest.cpp b/tests/genericresourcetest.cpp index 60b1dab..6dd4108 100644 --- a/tests/genericresourcetest.cpp +++ b/tests/genericresourcetest.cpp | |||
@@ -20,6 +20,11 @@ static void removeFromDisk(const QString &name) | |||
20 | store.removeFromDisk(); | 20 | store.removeFromDisk(); |
21 | } | 21 | } |
22 | 22 | ||
23 | /** | ||
24 | * Test of the generic resource implementation. | ||
25 | * | ||
26 | * This test relies on a working pipeline implementation, and writes to storage. | ||
27 | */ | ||
23 | class GenericResourceTest : public QObject | 28 | class GenericResourceTest : public QObject |
24 | { | 29 | { |
25 | Q_OBJECT | 30 | Q_OBJECT |
@@ -33,6 +38,7 @@ private Q_SLOTS: | |||
33 | Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace); | 38 | Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace); |
34 | } | 39 | } |
35 | 40 | ||
41 | ///Ensure the resource can process messages | ||
36 | void testProcessCommand() | 42 | void testProcessCommand() |
37 | { | 43 | { |
38 | flatbuffers::FlatBufferBuilder eventFbb; | 44 | flatbuffers::FlatBufferBuilder eventFbb; |
diff --git a/tests/indextest.cpp b/tests/indextest.cpp index e3eabcc..edaf907 100644 --- a/tests/indextest.cpp +++ b/tests/indextest.cpp | |||
@@ -7,6 +7,9 @@ | |||
7 | #include "storage.h" | 7 | #include "storage.h" |
8 | #include "index.h" | 8 | #include "index.h" |
9 | 9 | ||
10 | /** | ||
11 | * Test of the index implementation | ||
12 | */ | ||
10 | class IndexTest : public QObject | 13 | class IndexTest : public QObject |
11 | { | 14 | { |
12 | Q_OBJECT | 15 | Q_OBJECT |
diff --git a/tests/messagequeuetest.cpp b/tests/messagequeuetest.cpp index 22ce161..7d406ed 100644 --- a/tests/messagequeuetest.cpp +++ b/tests/messagequeuetest.cpp | |||
@@ -8,6 +8,9 @@ | |||
8 | #include "messagequeue.h" | 8 | #include "messagequeue.h" |
9 | #include "log.h" | 9 | #include "log.h" |
10 | 10 | ||
11 | /** | ||
12 | * Test of the messagequeue implementation. | ||
13 | */ | ||
11 | class MessageQueueTest : public QObject | 14 | class MessageQueueTest : public QObject |
12 | { | 15 | { |
13 | Q_OBJECT | 16 | Q_OBJECT |
diff --git a/tests/pipelinetest.cpp b/tests/pipelinetest.cpp index 9aa7024..7efba13 100644 --- a/tests/pipelinetest.cpp +++ b/tests/pipelinetest.cpp | |||
@@ -139,6 +139,9 @@ QByteArray deleteEntityCommand(const QByteArray &uid, qint64 revision) | |||
139 | return command; | 139 | return command; |
140 | } | 140 | } |
141 | 141 | ||
142 | /** | ||
143 | * Test of the pipeline implementation to ensure new revisions are created correctly in the database. | ||
144 | */ | ||
142 | class PipelineTest : public QObject | 145 | class PipelineTest : public QObject |
143 | { | 146 | { |
144 | Q_OBJECT | 147 | Q_OBJECT |
diff --git a/tests/resourcecommunicationtest.cpp b/tests/resourcecommunicationtest.cpp index 1ab516a..fa2b5a1 100644 --- a/tests/resourcecommunicationtest.cpp +++ b/tests/resourcecommunicationtest.cpp | |||
@@ -5,6 +5,9 @@ | |||
5 | #include "commands.h" | 5 | #include "commands.h" |
6 | #include "handshake_generated.h" | 6 | #include "handshake_generated.h" |
7 | 7 | ||
8 | /** | ||
9 | * Test that resourceaccess and listener work together. | ||
10 | */ | ||
8 | class ResourceCommunicationTest : public QObject | 11 | class ResourceCommunicationTest : public QObject |
9 | { | 12 | { |
10 | Q_OBJECT | 13 | Q_OBJECT |
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 8e841cb..bef8755 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp | |||
@@ -8,11 +8,13 @@ | |||
8 | 8 | ||
9 | #include "common/storage.h" | 9 | #include "common/storage.h" |
10 | 10 | ||
11 | /** | ||
12 | * Test of the storage implementation to ensure it can do the low level operations as expected. | ||
13 | */ | ||
11 | class StorageTest : public QObject | 14 | class StorageTest : public QObject |
12 | { | 15 | { |
13 | Q_OBJECT | 16 | Q_OBJECT |
14 | private: | 17 | private: |
15 | //This should point to a directory on disk and not a ramdisk (since we're measuring performance) | ||
16 | QString testDataPath; | 18 | QString testDataPath; |
17 | QString dbName; | 19 | QString dbName; |
18 | const char *keyPrefix = "key"; | 20 | const char *keyPrefix = "key"; |