开发者

MSpec and ReSharper Problem

开发者 https://www.devze.com 2023-01-17 12:03 出处:网络
I\'ve got the latest mspec from the codebetter teamcity site and installed the Resharper5.1 runner as suggested.The runner and the annotations show up fine in the resharper option dialogs.

I've got the latest mspec from the codebetter teamcity site and installed the Resharper5.1 runner as suggested. The runner and the annotations show up fine in the resharper option dialogs.

Now even with the annotations library ticked I still get "field xxx is nev开发者_运维知识库er used" warnings everywhere and when I ask resharper to run all tests in the solution it doesn't seem to find my specifications.

I have unblocked the dlls.

Using resharper 5.1.


"Field xyz is never used" warnings only go away for classes that have the Subject attribute applied. If you don't use Subject you can work around the issue by disabling warning 169 in your spec projects.

Some questions about your issues with solution runs:

  1. Did your enable MSpec under ReSharper | Options | Unit Testing?
  2. Do specification runs for projects (as opposed to solution runs) work for you?
  3. Can you start specifications by clicking the green/yellow icon in the gutter?
  4. Does the Unit Text Explorer window correctly reflect the solution's contexts and specifications?
0

精彩评论

暂无评论...
验证码 换一张
取 消