Skip to content

Documentation for --tests flag is very unclear #10490

@jplatte

Description

@jplatte

Problem

cargo test --help has this to say about the --tests flag:

--tests                     Test all tests

Steps

  1. cargo test --help

Possible Solution(s)

Explicitly state whether unit, integration and/or doctests are being run.

It seems to me like it's unit and integration tests but not doctests. If this is the intended behavior, I can create a PR to improve the help message.

Version

cargo 1.61.0-nightly (109bfbd 2022-03-17)
release: 1.61.0-nightly
commit-hash: 109bfbd055325ef87a6e7f63d67da7e838f8300b
commit-date: 2022-03-17
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1m)
os: Arch Linux Rolling Release [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cli-helpArea: built-in command-line helpC-bugCategory: bugCommand-testE-easyExperience: EasyS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions