summaryrefslogtreecommitdiffstats
path: root/tests/test_common/test_driver.cpp
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2021-11-22 22:15:04 +0100
committerGitHub <noreply@github.com>2021-11-23 08:15:04 +1100
commitb6054c0206609f3755f71d819643644d250288b0 (patch)
tree4f6f33040bb5184d47144090058eb089d2782b6c /tests/test_common/test_driver.cpp
parentf4966a19d69a7f3bbefeea0537071d7d7c2abbdd (diff)
[Tests] Increase QMK test coverage (#13789)
* Add per-test keymaps * Add better trace and info logs for failed unit-tests * Add layer state assertion with tracing message * Use individual test binaries configuration options * Add basic qmk functionality tests * Add tap hold configurations tests * Add auto shift tests * `qmk format-c * Fix tests Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'tests/test_common/test_driver.cpp')
-rw-r--r--tests/test_common/test_driver.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_common/test_driver.cpp b/tests/test_common/test_driver.cpp
index 84e249d838..2fa2b6a2e7 100644
--- a/tests/test_common/test_driver.cpp
+++ b/tests/test_common/test_driver.cpp
@@ -27,7 +27,10 @@ TestDriver::~TestDriver() { m_this = nullptr; }
uint8_t TestDriver::keyboard_leds(void) { return m_this->m_leds; }
-void TestDriver::send_keyboard(report_keyboard_t* report) { m_this->send_keyboard_mock(*report); }
+void TestDriver::send_keyboard(report_keyboard_t* report) {
+ test_logger.trace() << *report;
+ m_this->send_keyboard_mock(*report);
+}
void TestDriver::send_mouse(report_mouse_t* report) { m_this->send_mouse_mock(*report); }