Skip to content

Allow assert passed tests expanded results #304

@tisonkun

Description

@tisonkun

From the documents, it seems current pass tests only assert that "compile successfully and have a main function that does not panic when the compiled binary is executed".

Often, it would be helpful when a proc-macro author wants to assert the expanded result is as expected.

Does try_build provide such ability? Or I should write an extra script to run cargo expand and diff the output manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions