How to diagnose “TestFixtureSetUp Failed”

前端 未结 11 1391
感动是毒
感动是毒 2021-02-06 21:46

We use TeamCity as our CI server, and I\'ve just started seeing \"TestFixtureSetUp Failed\" in the test failure window.

Any idea how I go about debugging th

11条回答
  •  感动是毒
    2021-02-06 22:31

    I was troubled by this today. I did the following to get the actual error.

    (1) Write another test in a separate fixture which initializes an instance of the troubling test fixture, explicitly calls setup methods such as TestFixtureSetUp and SetUp if any, and then executes the target test method.

    (2) Add exception handling code for the new code above, and log / output the actual exception to somewhere.

提交回复
热议问题