Why can I no longer run unit tests from Resharper's test runner?
Things were running fine. Who knows what changed, but now I end up with:
Unit Test Runner failed to load test assembly: JetBrains.Re开发者_开发问答sharper.TaskRunnerFramework.TaskException:Exception of type 'Microsoft.VisualStudio.TestTools.CommandLine.CommandLineParameterException' was thrown.
Any suggestions?
I've just been having the same problem. It turned out that the Solution Items "folder" had a couple of .testsettings files in it which didn't actually exist (probably because they weren't added to the Git repo). Anyway, I removed them from the Solution and the R# runner now works fine.
Hope that helps.
You can check here for R# bugs that have the same description and maybe find the cause of your problem or a possible workaround. This bug seems to come close.
The other answers did not work for me unfortunately, instead I had to create a testsettings file manually to resolve the issue:
Right click Solution root
- Add > New Item...
- Select Test Settings from the Installed Templates column
- Select the Test Settings item, and rename to the desired file name as necessary
- Add
You should now be able to run your unit tests correctly.
精彩评论