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

Create automatic test file when right click in a function #582

Closed
marinacavalari opened this issue Sep 28, 2021 · 3 comments
Closed

Create automatic test file when right click in a function #582

marinacavalari opened this issue Sep 28, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@marinacavalari
Copy link

While using cursive in intellij I noticed that when we do a right click in a function, we can select the option to automatic create a test, so the cursive itself creates a new file in the same namespace organization with one test to the function I first clicked. It would be nice to help us on unit tests

@marinacavalari marinacavalari added the enhancement New feature or request label Sep 28, 2021
@ericdallo
Copy link
Member

We could add that via code actions, like a code action for create test for 'foo/bar', even so, we would need to know which source-path is the test one, for a project which has only src and test that could work already, but for another one with src, unit-test, integration-test, how we would know which one we should create the new file/test?

@ericdallo ericdallo added this to Low priority in clojure-lsp via automation Sep 28, 2021
@ericdallo
Copy link
Member

We could just always prompt to user choose what source-path makes sense, it looks safer and it should work for all cases

@ericdallo ericdallo moved this from Low priority to In progress in clojure-lsp Oct 10, 2021
clojure-lsp automation moved this from In progress to Next release Oct 10, 2021
@ericdallo
Copy link
Member

Created new command create-test, for Calva, it's still required to make the command available c/c @bpringe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants