Skip to content

x.py test should run tests for changed code first #80571

@thomcc

Description

@thomcc

This is mostly just to speed up iteration time in a {edit,compile,test} cycle. It also matters more for doctests than normal tests, since these are the tests that are slowest. It would also be okay if this behavior were behind a non-default flag.

I gather (from @jyn514) that this is tricky because the testrunner doesn't know the right module name in all cases, but it would probably be fine to just take a stab at it, since eventually everything should still get run anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-testsuiteArea: The testsuite used to check the correctness of rustcC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions