Skip to content

WebApplicationFactory<Program> can only be used with workaround in F# aspnet integration tests #18302

Description

@jkone27

the only way to make use of integration tests for aspnetcore from F# code , is either use the old Startup class setup (not valid for minimal api), or use this setup which makes use of a "trick" of declaring both a type and a module right after for Program as else the Program static class is not visible for unit/integration tests in the minimal api form?

Image

then it can be used by WebApplicationFactory<Program> in F# unit tests

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions