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 tests #48

Open
DamianEdwards opened this issue Jun 7, 2024 · 1 comment
Open

Add tests #48

DamianEdwards opened this issue Jun 7, 2024 · 1 comment

Comments

@DamianEdwards
Copy link
Owner

It's time. Too easy to regress stuff now.

Thinking as a start I'll use WebApplicationFactory to test all the endpoints in the sample app. This will be in-process and thus not native AOT or trimmed. I can then have another test that publishes the app and tests the endpoints for real. Ideally would do it for both PublishTrimmed and PublishAot which will likely require manipulating the project file as I've hit issues passing -p:PublishAot=true/-p:PublishTrimmed=true at the command line as it ends up applying to the source generator project too which causes errors as it targets .NET Standard which isn't compatible with trimming or native AOT.

@DamianEdwards
Copy link
Owner Author

Added WebApplicationFactory based tests for the sample webapp.

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

No branches or pull requests

1 participant