nunit locking dll

后端 未结 4 1907
故里飘歌
故里飘歌 2020-12-11 01:16

I have been using nunit with visual studio 2010 on a windows 7 64-bit pc.

I am able to open the nunit gui and run my unit tests. If I then change one of the unit te

相关标签:
4条回答
  • 2020-12-11 01:48

    Another thing to check is to make sure that Shadow Copy is enabled in Nunit -> Tools -> Settings -> TestLoader -> Advanced -> Enable Shadow Copy

    0 讨论(0)
  • 2020-12-11 01:49

    I think this has to do with the placement of my test project. Initially, I was putting the nunit test project in a seperate directory from my dll files. I was thinking that I would keep all of my test projects in one centralized location.

    I them moved my test project into the same location as my test dlls under my visual studio projects. After that, it seems to be working correctly.

    I think this has to do the shadow copy. I read in the nunit group on google that the .net framework will only shadow copy assemblies in the application base or it's subdirectories.

    This led me to try creating the nunit test project within my application base and that seemed to work.

    Hope that makes sense.

    Thanks

    0 讨论(0)
  • 2020-12-11 01:52

    try this, Tools > Settings > Test Loader > Assembly Isolation > Default Process Model > Run tests in a separate process per Assembly.

    0 讨论(0)
  • 2020-12-11 01:57

    I also faced the exact issue, however czuroski's answer did not work for me (although I think that we are in effect talking about the same thing).

    What did work for me was to ensure that in NUnit I set the Project Path and Project Base were pointing to the same root application folder under Project -> Edit. I re-saved my existing Nunit project to the same directory as my VS sln file.

    0 讨论(0)
提交回复
热议问题