Skip to content

ClassInitialize should have timeout independant from test methods #496

@OFeOFeO

Description

@OFeOFeO

Method that's designed as a ClassInitialize method should be able to have a Timeout attribute that's independant of the first test being run.

I have a class with lots of tests that required a service running. When running locally, the service is typically not already running, so the class initialize set it up. This can lead to timeout. The current behavior is that the first test to run (which I don't have a way to control), will timeout. Instead I'd like to be able to give ClassInitialize extra time, and then have timeout for other test be short since none of the tests take much time once the service is up and running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions