Skip to content

Document that 'cargo test' will execute files in the examples/ directory #431

@Wilfred

Description

@Wilfred

We don't seem to have any docs about Cargo's ability to run files in the examples/ directory.

I may have missed it, but I can't see it in chapter 11 of the new book. I also looked at testing and documentation in the old book but I didn't see it mentioned there either.

It would be nice to mention this groovy feature. I don't know exactly how it works, so perhaps mention what sort of examples we expect -- full programs or snippets, and whether they should print the output of the functions being shown, or whether to assert things about their output instead.

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