* Add optional `hold-trigger-key-positions` hold-tap configuration * Leverage configuration for decision making around when to trigger hold decision in hold-taps. * Add docs for new configuration. * Tests for the new config/decision logic.
1.2 KiB
1.2 KiB
title | sidebar_label |
---|---|
Tests | Tests |
- Running tests requires native posix support.
- Any folder under
/app/tests
containingnative_posix.keymap
will be selected when runningwest test
. - Run tests from within the
/zmk/app
directory. - Run a single test with
west test <testname>
, likewest test tests/toggle-layer/normal
.
Creating a New Test Set
- Copy the test set that most closely resembles the tests you will be creating.
- Rename the newly created test set to the behavior you're testing e.g, toggle-layer
- Modify
behavior_keymap.dtsi
to create a keymap using the behavior and related behaviors - Modify
test_case/native_posix.keymap
for a simulated use case - Modify
test_case/events.patterns
to collect relevant logs to the test- See: sed manual and tutorial
- Modify
test_case/keycode_events.snapshot
for to include the expected output - Rename the
test_case
folder to describe the test. - Repeat steps 4 to 7 for every test case