Skip to content

Allow assert passed tests expanded results #304

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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