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

Not possible to run individual unit tests in some workspaces #241

Open
adamdama opened this issue Sep 20, 2023 · 0 comments
Open

Not possible to run individual unit tests in some workspaces #241

adamdama opened this issue Sep 20, 2023 · 0 comments

Comments

@adamdama
Copy link
Contributor

If you try to run a single unit test from a specific workspace errors are thrown. These errors all point to jsonrpsee.

Run command:

cargo test --package main --bin ripple -- service::user_grants::tests::test_grant_policy_enforcer::test_evaluate_options_no_options --exact --nocapture

Screenshot 2023-09-20 at 17 38 11

This is only happening in some workspaces. This doesn't seem to happen if the jsonrpsee is not a dependency of that module

The workaround is to use test filtering but this is a worse experience for developers as:

  • You cannot use the "Run Test" button in the IDE
  • The test run output shows a report line for all modules and you have to find the filtered in test within it
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