Skip to content

Add command to run current test#14

Open
oxo42 wants to merge 1 commit into
idossha:mainfrom
oxo42:run-one-test
Open

Add command to run current test#14
oxo42 wants to merge 1 commit into
idossha:mainfrom
oxo42:run-one-test

Conversation

@oxo42

@oxo42 oxo42 commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Uses treesitter (must have matlab parser installed) to find out what the current test the cursor is on. It then sends a runtests command to the matlab pane.

Run tests with cursor in function

image

Run tests for the whole class

Note that the cursor is not inside a function
image

@idossha

idossha commented Mar 22, 2026

Copy link
Copy Markdown
Owner

This is pretty cool. However, what happens when users do not have treesitter or the matlab parser? Is there graceful handling of this?

Can it be modified to rely on some config that is shipped with the plugin to keep dependencies at bare minimum?

@oxo42

oxo42 commented Mar 22, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, that's a fair point. I'll see if I can figure out a clean way of doing it without TS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants