diff options
| author | Stefan Kerkmann <karlk90@pm.me> | 2021-11-22 22:15:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-23 08:15:04 +1100 |
| commit | b6054c0206609f3755f71d819643644d250288b0 (patch) | |
| tree | 4f6f33040bb5184d47144090058eb089d2782b6c /tests/test_common/test_driver.cpp | |
| parent | f4966a19d69a7f3bbefeea0537071d7d7c2abbdd (diff) | |
| download | qmk_firmware-b6054c0206609f3755f71d819643644d250288b0.tar.gz qmk_firmware-b6054c0206609f3755f71d819643644d250288b0.zip | |
[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.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_common/test_driver.cpp b/tests/test_common/test_driver.cpp index 84e249d83..2fa2b6a2e 100644 --- a/tests/test_common/test_driver.cpp +++ b/tests/test_common/test_driver.cpp | |||
| @@ -27,7 +27,10 @@ TestDriver::~TestDriver() { m_this = nullptr; } | |||
| 27 | 27 | ||
| 28 | uint8_t TestDriver::keyboard_leds(void) { return m_this->m_leds; } | 28 | uint8_t TestDriver::keyboard_leds(void) { return m_this->m_leds; } |
| 29 | 29 | ||
| 30 | void TestDriver::send_keyboard(report_keyboard_t* report) { m_this->send_keyboard_mock(*report); } | 30 | void TestDriver::send_keyboard(report_keyboard_t* report) { |
| 31 | test_logger.trace() << *report; | ||
| 32 | m_this->send_keyboard_mock(*report); | ||
| 33 | } | ||
| 31 | 34 | ||
| 32 | void TestDriver::send_mouse(report_mouse_t* report) { m_this->send_mouse_mock(*report); } | 35 | void TestDriver::send_mouse(report_mouse_t* report) { m_this->send_mouse_mock(*report); } |
| 33 | 36 | ||
