aboutsummaryrefslogtreecommitdiff
path: root/tests/quotest.cpp
AgeCommit message (Collapse)Author
2020-06-10Room: fix messageSent() being emitted too earlyKitsune Ral
Closes #406.
2020-06-10TestSuite::sendRedaction: fix a stale TODOKitsune Ral
Add another TODO instead :-|
2020-06-10quotest: make sure to send all events before leavingKitsune Ral
2020-04-15Connection: connectToServer -> loginWithPasswordKitsune Ral
connectToServer() is left for compatibility but deprecated.
2020-03-29quotest: minor cleanupKitsune Ral
2019-12-13quotest: cleanupKitsune Ral
2019-10-21Quotest: more work on test invocationKitsune Ral
Tests should be private slots, not public slots; and they are invoked through a QueuedConnection so that both sync and async tests could be processed uniformly with clear code.
2019-10-21Quotest: use clog instead of coutKitsune Ral
Because cout is not synchronised with stderr and the library's debug printing is not aligned with that from quotest. qDebug()/qWarn() would probably be even better, for consistency; but require switching from std::string to QString.
2019-10-21Quotest: derive TestManager from QCoreApplicationKitsune Ral
Also: joining the test room didn't survive being a test in its own right and has been reverted to be a part of setupAndRun().
2019-10-20Quotest: factor out tests into TestSuite; rework sync testsKitsune Ral
Synchronous tests now use QSignalSpy instead of connecting to the signal just before its emission.
2019-10-18TestManager::setTopic: add debug loggingKitsune Ral
2019-10-18qmc-example -> quotest, QMCTest -> TestManagerKitsune Ral
Also: some bits of refactoring in the test code to make it more extensible. Closes #352.