aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-10-04Add tests for prettyPrint()Alexey Rusakov
2021-09-28quotest: timelineEdge() -> historyEdge()Alexey Rusakov
timelineEdge() is deprecated.
2021-08-24tests/CMakeLists.txt: align CMake required versionAlexey Rusakov
Following the library's CMakeLists file, it's 3.10.
2021-02-21Uri: support abbreviated types in Matrix URIsAlexey Rusakov
As per the latest iteration of MSC2312, room/, user/ and event/ are only supported for parsing and replication but not for emitting from Matrix identifiers.
2021-01-08quotest: use the target room for loadMembers testKitsune Ral
Now that we've crowded it with a few synthetic users, lazy-loading of members doesn't some other room to get tested. Bonus: Connection::roomByAlias() has its own very simple test now.
2021-01-07Prefer connecting to BaseJob::result(), not finished()Kitsune Ral
...because finished() includes abandoning and should only be relevant when lifecycle issues are involved.
2020-12-28Cleanup and clang-tidy/clazy fixesKitsune Ral
(cherry picked from commit 56c1db077b5da653c230432abc6c746318a77bed)
2020-12-24quotest: wait until the final report is actually sentKitsune Ral
Previously the code was waiting until an arbitrary event is sent.
2020-12-24Fix clang-tidy/clazy warningsKitsune Ral
2020-12-10Uri: fix a few cases of insufficient escapingKitsune Ral
2020-11-26quotest: Refreshed a commentKitsune Ral
[skip ci]
2020-09-11Uri::toUrl(): fix incorrect matrix.to repKitsune Ral
The first character inside the fragment should be /
2020-08-22quotest: fix changeName test failuresKitsune Ral
Member renames upon profile changes don't come right away, it turns out; so check User::nameChanged instead of Room::memberRenamed.
2020-08-04quotest: don't fail on past name changes coming in syncKitsune Ral
Sync may bring past events in a few batches, it turns out, and quotest used to choke on name changes from its own past executions.
2020-08-04Quotest: fix whitespacesmissing ina log lineKitsune Ral
2020-08-03quotest: clean up the room state after testingKitsune Ral
2020-08-03quotest: use #test instead of #quotient in loadMembers testKitsune Ral
#quotient:matrix.org is a primary channel to talk to users and developers, and events produced by changeName test come really noisy. #test:matrix.org is a perfect place to test things out, OTOH.
2020-08-02quotest: add changeName testKitsune Ral
2020-07-22quotest: Minor refactoring of basic URI testsKitsune Ral
2020-07-21Uri: bare-sigil URIs are invalidKitsune Ral
2020-07-19MatrixUri->Uri: Extend to non-Matrix URIsKitsune Ral
2020-07-18quotest: unit tests for MatrixUriKitsune Ral
2020-07-18class MatrixUri; support action=join and via=Kitsune Ral
2020-07-18quotest: consolidate processing of syncDone()Kitsune Ral
2020-07-18quotest: delay sync start till after joiningKitsune Ral
To ensure that the sync returns the details of the room just joined.
2020-07-18ResourceResolverKitsune Ral
Introducing the uniform way to resolve Matrix URIs and identifiers to Room/User objects, passing an optional event id (if supplied) to the client-defined handler. Just call ResourceResolver::visitResource() or ResourceResolver::openResource() and you'll have that string parsed and dispatched where you need.
2020-07-18quotest: log final report as late as possibleKitsune Ral
...to spare the developer from scrolling up in the search of it.
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
2020-02-18[quotest] Refactor Cmake files with variable project nameAlexey Andreev
Signed-off-by: Alexey Andreev <aa13q@ya.ru>
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-21tests/CMakeLists.txt: QMC -> Quotient; add Qt5::Test to depsKitsune Ral
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.