Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

[Bug][Move CLI] move test crashes when --coverage is specified with no test cases being executed #968

Open
@rahxephon89

Description

@rahxephon89

🐛 Bug

In the move cli, we can specify test cases to run by executing move test MODULE_TO_TEST. However, if there is no test to be executed, move cli will panic when the option --coverage is attached probably because no coverage trace file is generated.

To reproduce

Inside language/move-stdlib, executing move test 0x1::vector_tests --coverage will lead to panic with the error message:

thread 'main' panicked at 'Unable to open coverage trace file '"./.trace"'', .../language/tools/movecoverage/src/coverage_map.rs:67:33

Expected Behavior

Better error message instead of panic

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions