简体   繁体   中英

Xunit run all tests in one appdomain

I have a solution in which I have several projects, a few of them are test projects. I have shared some testing logic among those test, mainly static properties and methods. It turns out, however, that both resharper and VS test runners create one testing appdomain per assembly . How can I make them run all tests in one appdomain ? I am using XUnit v1.9 and this needs to be XUnit < 2.0. I am satisfied when either Resharper test runner or VS test runner runs all tests in one appdomain.

This is a feature that xunit doesn't support, as I understand it. Each assembly is run in a separate AppDomain. I'd recommend posting an issue on xunit's GitHub issue tracker , but I'd also recommend removing shared state, if at all possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM