Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new test method to XCTApplicationTester returns a response directly #2725

Merged
merged 3 commits into from
Nov 11, 2021

Conversation

tonyarnold
Copy link
Contributor

I'm finding that there are a few places where having my tests return an XCTHTTPResponse directly — rather than via a closure — feels more ergonomic in use (especially inline with async/await code).

This PR proposes to add a method that does that.

I'm not sold on the name I've given this method (performTest(…)), so please feel free to suggest alternatives.

@0xTim
Copy link
Member

0xTim commented Nov 2, 2021

Why not sendRequest?

@0xTim 0xTim added the semver-patch Internal changes only label Nov 2, 2021
@tonyarnold
Copy link
Contributor Author

Thanks, Tim - I'll propose that in the PR. I'm not familiar with naming standards in Vapor, so I appreciate the suggestion!

@0xTim 0xTim merged commit 8075031 into vapor:main Nov 11, 2021
@VaporBot
Copy link
Contributor

These changes are now available in 4.52.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants