Skip to content

How do you make shared App set-up code for Tests? #3648

@codecnotsupported

Description

@codecnotsupported

I've some shared code between tests namely
Setting up actix_web::App::new which returns actix_web::app:App<actix_web::app_service::AppEntry>
I can't make a common setup function because I can't return actix_web::app_service::AppEntry because actix_web::app_service is private but AppEntry is public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions