Skip to content

appdomain per test (isolation per test), for dealing with static classes #2280

@dbones

Description

@dbones

<< Feature Request >>
Run each test in its own app domain.

My subject under test (the actual service) has a dependency on a library which uses static classes.

between each I create a new instance of the Subject, but as it has this dependency it is unable to be an isolated test.

in NUnit 2.6.x I created a new AppDomain in the test setup, and run the subject inside that. This seemed to work (tiny bit flaky), I moved to the latest verion of nunit 3.7.x and my small solution would pass one test and then hung.

I am going to give this ago https://bitbucket.org/zastrowm/nunit.applicationdomain/overview

however I would be epic to have this support out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions