Skip to content

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

@adamdama

Description

@adamdama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions