Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustic-test-arguments for rustic-cargo-current-test #578

Open
myrgy opened this issue Aug 19, 2024 · 1 comment
Open

rustic-test-arguments for rustic-cargo-current-test #578

myrgy opened this issue Aug 19, 2024 · 1 comment

Comments

@myrgy
Copy link

myrgy commented Aug 19, 2024

Hi guys,

is there any way to configure extra flags for rustic-cargo-current-test because if my case some tests are hidden behind feature flags

so for all tests I've enabled it using .dir-local.el file like

...
 (rustic-mode . ((rustic-test-arguments . --all-features))))

but when I run rustic-cargo-current-test there is no way pass these flags because it's been overridden by the test name

Thank you in advance!

@myrgy
Copy link
Author

myrgy commented Aug 19, 2024

I found a workaround using

.cargo/config.timl

[alias]
t = "test --all-features"

and .dir-locals.el

(rustic-mode . ((rustic-cargo-test-exec-command . "t")
                 (rustic-test-arguments . "")))

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

No branches or pull requests

1 participant