diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2021-11-23 03:31:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 13:31:01 +1100 |
commit | a24bdccee0580d1263733bc7e66e4e4f97713f19 (patch) | |
tree | 868cb12a436a87b39c936292f442bcc266ae0224 /tests/test_common/test_driver.cpp | |
parent | e20bc76a1e05d02c15a452e51fa76d9ec39b0369 (diff) | |
download | qmk_firmware-a24bdccee0580d1263733bc7e66e4e4f97713f19.tar.gz qmk_firmware-a24bdccee0580d1263733bc7e66e4e4f97713f19.zip |
[Tests] Increase QMK test coverage take 2 (#15269)
* 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
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 | ||