Skip to content

ui_test: more robust comment parsing #2170

Closed
@RalfJung

Description

@RalfJung

Currently, if we fail to parse a //~ line or an annotation like // ignore-target, we just go on. That's a pretty bad default for infrastructure that is meant to test our code! For both of these I think we should hard error if we cannot parse the line.

For //~ that is fairly easy; if any comment starting //~ eludes us we can just error.

For the other annotations it is a lot harder since that might just be a regular comment. I think we need to change their syntax so that we can tell that this line is meant to be special. //@ might work? We should ideally sync this with compiletest, in case they have similar plans.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsArea: affects our test suite or CIC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementC-projectCategory: a larger project is being tracked here, usually with checkmarks for individual steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions