Skip to content

Rework component testing support to make test updates easier#395

Merged
elliottt merged 1 commit into
mainfrom
trevor/refactor-component-tests
Jun 28, 2024
Merged

Rework component testing support to make test updates easier#395
elliottt merged 1 commit into
mainfrom
trevor/refactor-component-tests

Conversation

@elliottt
Copy link
Copy Markdown
Contributor

Add a macro for generating the core wasm and component versions of a test, and
modify the .adapt_component builder function on Test to accept a bool. This
simplifies modifying existing tests to support components by doing the work of
abstracting out the body in a macro.

@elliottt elliottt mentioned this pull request Jun 28, 2024
@elliottt elliottt requested a review from jameysharp June 28, 2024 20:14
Copy link
Copy Markdown
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this strikes me as a net positive for test clarity, in spite of my general preference to avoid macros. 👍

@elliottt elliottt merged commit 7b8c222 into main Jun 28, 2024
@elliottt elliottt deleted the trevor/refactor-component-tests branch June 28, 2024 20:20
GeeWee pushed a commit to GeeWee/Viceroy that referenced this pull request Jul 25, 2024
)

Add a macro for generating the core wasm and component versions of a test, and
modify the .adapt_component builder function on Test to accept a bool. This
simplifies modifying existing tests to support components by doing the work of
abstracting out the body in a macro.
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.

2 participants