Skip to content

Commit

Permalink
chore(linux): address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ermshiperete committed Nov 27, 2024
1 parent 4a852c9 commit 7edda3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ To just run the unit tests without integration tests, add the
It's also possible to only run the tests for one of the subprojects. You
can use `build.sh` in the subdirectory for that.

Unit tests should be named after the file/class they are testing and
follow the pattern `*.tests.<ext>` (e.g. `keymanutil.tests.c`) or
for Python `*_tests.py`.

### ibus-keyman

If you want to run the ibus-keyman tests with Wayland, you'll have to
Expand Down
2 changes: 1 addition & 1 deletion docs/linux/keyman-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ LANGUAGE=de ./km-config
"python.testing.unittestArgs": [
"-v",
"-s", "linux/keyman-config/tests",
"-p", "test_*.py"
"-p", "*_tests.py"
],
"python.testing.unittestEnabled": true,
```
Expand Down
2 changes: 1 addition & 1 deletion docs/settings/linux/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"request": "launch",
"name": "Launch ibus-keyman unit tests",
"target": "./keymanutil_tests",
"cwd": "${workspaceFolder}/linux/build/x86_64/debug/src/test",
"cwd": "${workspaceFolder}/linux/build/x86_64/debug/src/tests",
"valuesFormatting": "parseText",
"internalConsoleOptions": "openOnSessionStart",
"env": {
Expand Down
2 changes: 1 addition & 1 deletion docs/settings/linux/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"python.testing.unittestArgs": [
"-v",
"-s", "linux/keyman-config/tests",
"-p", "test_*.py"
"-p", "*_tests.py"
],
"python.testing.unittestEnabled": true,
"python.testing.pytestEnabled": false,
Expand Down

0 comments on commit 7edda3b

Please sign in to comment.