keepassxc/tests/gui
Janek Bevendorff 113c8eb702 Add CLI tests and improve coding style and i18n
The CLI module was lacking unit test coverage and showed some severe
coding style violations, which this patch addresses.

In addition, all uses of qCritical() with untranslatble raw char*
sequences were removed in favor of proper locale strings. These are
written to STDERR through QTextStreams and support output
redirection for testing purposes. With this change, error messages don't
depend on the global Qt logging settings and targets anymore and go
directly to the terminal or into a file if needed.

This patch also fixes a bug discovered during unit test development,
where the extract command would just dump the raw XML contents without
decrypting embedded Salsa20-protected values first, making the XML
export mostly useless, since passwords are scrambled.

Lastly, all CLI commands received a dedicated -h/--help option.
2018-10-19 21:49:54 +02:00
..
CMakeLists.txt Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestGui.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestGui.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestGuiPixmaps.cpp Fixed issues with initial commit 2018-07-06 22:23:52 -04:00
TestGuiPixmaps.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00