Skip to content

Add support for generating layout tests in a different file - #3493

Open
DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:separate-layout-tests
Open

DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:separate-layout-tests

Conversation

@DanielEScherzer

Copy link
Copy Markdown

Add a new command line flag, --separate-layout-tests-path, and a new builder method, separate_layout_tests_path(), to set the path for layout tests. Unlike when wrapping static functions, an explicit path is required for the layout tests to be put in a different file, with no fallback to a temporary file. Separate layout tests are expected to be useful in projects where the bindings are included in version control, in which case the include! of the generated file would break if that file wasn't also present.

Fixes #1655

Add a new command line flag, `--separate-layout-tests-path`, and a new builder
method, `separate_layout_tests_path()`, to set the path for layout tests.
Unlike when wrapping static functions, an explicit path is required for the
layout tests to be put in a different file, with no fallback to a temporary
file. Separate layout tests are expected to be useful in projects where the
bindings are included in version control, in which case the `include!` of the
generated file would break if that file wasn't also present.

Fixes rust-lang#1655
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to generate layout tests in a different file.

1 participant