[Ksecretservice-devel] tests
Valentin Rusu
kde at rusu.info
Fri Aug 5 12:16:49 UTC 2011
Hello Alin,
As a general note, please be informed that I'm doing test-driven
development.
Some component's tests may fail as I'm writing tests first.
The secret sync tools development is now on hold until I'll get the
daemon and the client API to replace the current KWallet. So be assured
it's tests will always fail until then.
However, the rest of the code is now in the state where all tests pass.
http://commits.kde.org/ksecretservice/f60dd59bdb66b4e39838f54e551f0284842e7170
Cheers,
Valentin
On 08/02/2011 04:49 PM, Alin Marin Elena wrote:
> [alin at abbaton:~]: ksecretsservice_client_test
> ********* Start testing of KSecretServiceTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> PASS : KSecretServiceTest::initTestCase()
> PASS : KSecretServiceTest::testCreateAndDelete()
> PASS : KSecretServiceTest::testRenameCollection()
> QWARN : KSecretServiceTest::testCreateItem() Object::connect: No such signal
> CreateItemJobPrivate::createIsDone( CollectionJob::CollectionError, const
> QString& )
> PASS : KSecretServiceTest::testCreateItem()
> QWARN : KSecretServiceTest::testItems() Object::connect: No such signal
> CreateItemJobPrivate::createIsDone( CollectionJob::CollectionError, const
> QString& )
> PASS : KSecretServiceTest::testItems()
> PASS : KSecretServiceTest::cleanupTestCase()
> Totals: 6 passed, 0 failed, 0 skipped
> ********* Finished testing of KSecretServiceTest *********
>
> [alin at abbaton:~]: ksecret_collection_test
> ********* Start testing of KSecretTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> PASS : KSecretTest::initTestCase()
> PASS : KSecretTest::testCreateCollectionAsync()
> PASS : KSecretTest::testLockCollectionAsync()
> PASS : KSecretTest::testUnlockCollectionAsync()
> PASS : KSecretTest::testCreateItemAsync()
> PASS : KSecretTest::testCheckItem()
> PASS : KSecretTest::testSearchItem()
> FAIL! : KSecretTest::testChangeItem() 'm_collection->modified() >= start'
> returned FALSE. ()
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/backend/tests/ksecrettest.cpp(270)]
> FAIL! : KSecretTest::testReplaceItemAsync() Compared values are not the same
> Actual (collectionSpy.count()): 0
> Expected (1): 1
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/backend/tests/ksecrettest.cpp(301)]
> FAIL! : KSecretTest::testDoNotReplaceItemAsync() Compared values are not the
> same
> Actual (m_collection->items().value().size()): 2
> Expected (1): 1
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/backend/tests/ksecrettest.cpp(334)]
> FAIL! : KSecretTest::testDeleteItemAsync() 'm_collection-
>> items().value().isEmpty()' returned FALSE. ()
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/backend/tests/ksecrettest.cpp(361)]
> PASS : KSecretTest::testDeleteCollectionAsync()
> PASS : KSecretTest::cleanupTestCase()
> Totals: 9 passed, 4 failed, 0 skipped
> ********* Finished testing of KSecretTest *********
>
> [alin at abbaton:~]: ksecretservice_frontend_test
> ********* Start testing of ServiceTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> FAIL! : ServiceTest::initTestCase()
> 'QDBusConnection::sessionBus().registerService( DBUS_SERVICE )' returned
> FALSE. ()
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/frontend/tests/servicetest.cpp(48)]
> QFATAL : ServiceTest::cleanupTestCase() Received signal 11
> FAIL! : ServiceTest::cleanupTestCase() Received a fatal error.
> Loc: [Unknown file(0)]
> Totals: 0 passed, 2 failed, 0 skipped
> ********* Finished testing of ServiceTest *********
> Aborted
>
> [alin at abbaton:~]: ksecretservice_lib_queuedjobtest
> ********* Start testing of QueuedJobTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> PASS : QueuedJobTest::initTestCase()
> PASS : QueuedJobTest::testSync()
> PASS : QueuedJobTest::testAsync()
> PASS : QueuedJobTest::testAsyncOrder()
> PASS : QueuedJobTest::testAsyncOrderInFront()
> PASS : QueuedJobTest::cleanupTestCase()
> Totals: 6 passed, 0 failed, 0 skipped
> ********* Finished testing of QueuedJobTest *********
>
> [alin at abbaton:~]: ksecretsync_protocol_test
> ********* Start testing of ProtocolTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> PASS : ProtocolTest::initTestCase()
> FAIL! : ProtocolTest::testProtocol() 'server->handleRequest( request,
> response )' returned FALSE. ()
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/secretsync/tests/protocoltest.cpp(57)]
> PASS : ProtocolTest::cleanupTestCase()
> Totals: 2 passed, 1 failed, 0 skipped
> ********* Finished testing of ProtocolTest *********
>
> [alin at abbaton:~]: ksecret_collection_ui_test
> ********* Start testing of KSecretUiTest *********
> Config: Using QTest library 4.7.3, Qt 4.7.3
> PASS : KSecretUiTest::initTestCase()
> PASS : KSecretUiTest::testCreateCollectionAsync()
> PASS : KSecretUiTest::testLockCollectionAsync()
> FAIL! : KSecretUiTest::testUnlockCollectionAsync() Compared values are not
> the same
> Loc:
> [/usr/src/packages/BUILD/ksecretservice-0.0.1git.1312212703/daemon/backend/tests/ksecretuitest.cpp(128)]
> PASS : KSecretUiTest::cleanupTestCase()
> Totals: 4 passed, 1 failed, 0 skipped
> ********* Finished testing of KSecretUiTest *********
>
> Alin
>
>
>
>
> _______________________________________________
> Ksecretservice-devel mailing list
> Ksecretservice-devel at kde.org
> https://mail.kde.org/mailman/listinfo/ksecretservice-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/ksecretservice-devel/attachments/20110805/1f291970/attachment.html>
More information about the Ksecretservice-devel
mailing list