0

I have got numerous tests failing on 'TypeInitializationException' exceptions. All these tests pass with MSTest In visual-studio and pass in visual studio online. However using teamcity these are failing. The runner is VSTest.Console since MSTest Runner doesn't have support for fakes framework.

Teamcity v 9.05 Pluggin: VSTest Support v:32407

sponturious
  • 131
  • 1
  • 9
  • Have you even tried debugging? – rory.ap Jul 09 '15 at 14:02
  • Debugging in VS? they are passing in VS whilst running together or individually, the TypeInitializationException only occurs in the buildLog in teamcity? – sponturious Jul 09 '15 at 14:05
  • Yeah, so then you attach to the process from VS and debug that way. – rory.ap Jul 09 '15 at 14:06
  • Attach to the process i.e. you mean using profiler? I did debug the particular tests that are failing and they are fine in VS. I used resharper and MSTest to debug they pass in both. Do you think it is something to do with Ninject? because dependency injection is used throughout the project – sponturious Jul 09 '15 at 14:18
  • No, I mean with attach to process. "Debug > attach to process" – rory.ap Jul 09 '15 at 14:29
  • Try running the same activity locally on the command line using the same msbuild version as TeamCity and see what behaviour your get. If it matches TeamCity you at least have a way to test it locally. – Nanhydrin Jul 09 '15 at 14:48

0 Answers0