1

I have Visual Studio Pro 2015 and I'm trying to run xUnit tests in my solution. When I compile with Active solution platform set to "Any cpu" all my tests show up in Test Explorer. If I switch to x64 and rebuild (successfully), none of them show up in Test Explorer. Is this some kind of limitation of xUnit? I haven't found anything to that effect online.

Eric
  • 2,861
  • 6
  • 28
  • 59
  • Duplicate of http://stackoverflow.com/a/31662663/11635 I assume - the runner runs either x86 or x64, so if you build it to be specific, you need the runner to be in aligment with what you're compiling to – Ruben Bartelink Nov 19 '16 at 21:39
  • That fixed my problem. You can make your comment the answer to my question. – Eric Nov 21 '16 at 15:42
  • I have but would also be happy to see the question closed unless you believe your question is significantly more searchable than the original... – Ruben Bartelink Nov 21 '16 at 20:58
  • 1
    I just searched for my problems using the terms that I would naturally use and this popped up as the first result, but http://stackoverflow.com/questions/5571699/how-do-i-get-unit-tests-to-run-on-a-x64-platform/31662663#31662663 was much further down, so I think it's useful to leave this one here.. – Eric Nov 28 '16 at 14:59

1 Answers1

2

As covered in this question, the runner runs either x86 or x64, so if you build it to be specific, you need the runner to be in aligment with what you're compiling to:- bittedness menu option in Test menu,

Community
  • 1
  • 1
Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249