-
Notifications
You must be signed in to change notification settings - Fork 43
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
Code Actions Not Working With Async Tests #156
Comments
What do you mean with code action? Are you speaking about something like gutter icon on vscode or other IDE feature? |
@la10736 I mean the code actions provided by the rust-analyzer vscode extension. It just seemed curious to me that it didn't work for async tests and thought it was an issue with rstest. As it didn't display the case by case and thought that the issue was with what the rstest macro handled the async test cases: I've attached a photo of what it looks like normally vs async: Both tests are structured in the exact same way. The only difference is the usage of async testing as described here - https://docs.rs/rstest/latest/rstest/attr.rstest.html#async |
Hi, you posted the same image twice :) Anyway, that is (eventually) a rust-analyzer vscode extension's bug. I've already looked on a closed topic #120. I guess that vscode just looking for |
This is what the top line of the test looks like.
Whenever we remove the
async
prefix to the function we have the code actions that allow us to run a specific test case. But once its async we don't have that optionThe text was updated successfully, but these errors were encountered: