Skip to content

Ability to have PerfSetup method per test instead of per class #257

@wsaeed

Description

@wsaeed

Currently NBench only supports PerfSetup method per class. Normally a test class contains multiple test cases. Having a single setup method for all tests slows down the test execution as setup has to be done for each test, while used only for one. It will be ideal to have support for specifying a PerfSetup method for each test.

Suggestion:
Add another property in PerfBenchmark Attribute say PerfSetup Method and execute it if specified.

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