Repository navigation
Conversation
|
@mtnmbr This is nice work. Thank you. Could you look at retargeting your PR to the The feature documentation for 2.1.0 is no longer in the README. It's gotten way too big. But, the not-yet-publicly-announced documentation is available and includes some developer docs within the help section. |
Test files in nested folders, e.g. tests/unit/math/signal_processing/
test_pi_blackbox.c, all showed as flat siblings, which gets crowded in
larger projects.
- Add ceedlingExplorer.testFileHierarchy (default false) to nest test
files under one node per folder of their path
- Running a folder runs each of its test files
- Drop the path from the file label inside the hierarchy;
prettyTestFileLabel still strips the prefix and extension
6b1a2af to
9571bea
Compare
|
@mkarlesky Thanks! I've rebased the changes onto next_version and also changed the merge target :) |
| "ceedlingExplorer.testFileHierarchy": { | ||
| "markdownDescription": "Test files are nested in the test explorer under one node per folder of their path. E.g. `test/LEDs/test_BlinkTask.c` shows as `test` › `LEDs` › `test_BlinkTask.c`, or as `test` › `LEDs` › `BlinkTask` with `#ceedlingExplorer.prettyTestFileLabel#` active", | ||
| "type": "boolean", | ||
| "default": false, |
There was a problem hiding this comment.
I've chosen the default for this to be false in order to maintain backwards compatibility. If the next_version changes are bringing other major features/changes to the UI it might also be an option to set this to true.
Other test_views in VSCode atleast have this behaviour on by default.
Test files in nested folders (e.g.
tests/unit/math/signal_processing/test_pi_blackbox.c) are all listed as flat siblings in the Testing view, which gets crowded in larger projects.This adds an opt-in setting,
ceedlingExplorer.testFileHierarchy(defaultfalse, so existing behavior is unchanged). It nests test files under one node per folder of their path.prettyTestFileLabel: with it on, files show aspi_blackbox. With it off, files show astest_pi_blackbox.c, without the path, since the folders above already show it.prettyTestLabelkeeps working on the test functions.vscode-free module with unit tests (tests/unit/testFileHierarchy.test.ts).Screenshots
prettyTestFileLabel: trueprettyTestFileLabel: falsetestFileHierarchy: falsetestFileHierarchy: trueTesting
npm run test:unit: 58 passing, 5 of them new.tsc -p tsconfig.json --noEmitreports one error that's already onmaster: theisDevelopmentModeproperty intestController.tsis declared but never read. This change doesn't touch it.