Skip to content

Conversation

oguzkocer
Copy link
Contributor

As a follow up to #72, this PR uses the same approach to increase our integration test coverage by using parametrized tests.

I am not sure about publishing the macro, but I think we might end up removing the wp_networking crate all together and move the tests to wp_api which will resolve the issue. For now, this is a quick win and publishing the macro - at least for now - is harmless.

The better way to do this would be through proper builder pattern, but I didn't like derive_builder and - at this stage, we shouldn't spend time on things that won't have any added value besides syntactic sugar. Also, even the most concise builder pattern might be too verbose as a rstest case.

@oguzkocer oguzkocer added this to the 0.1 milestone May 2, 2024
@oguzkocer oguzkocer requested review from crazytonyli and jkmassel May 2, 2024 21:59
@oguzkocer oguzkocer merged commit 929c714 into trunk May 3, 2024
@oguzkocer oguzkocer deleted the parametrized_immut_user_tests branch May 3, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants