Skip to content

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

Open
@jkone27

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions