ReSharper does not see my Machine.Specification tests

I had a problem getting ReSharper to see the "Machine.Specification" tests that I wrote.

Specifications run in ConsoleRunner from mSpec. When I try to run "Run Unit Tests" in ReSharper, I get the message: "There are no tests in the file." Specifications do not show test markers.

I created a folder in the ReSharper / bin / folder and placed the corresponding DLLs there. The mSpec plugin appears in ReSharper.

What can I lose?

In addition, I use xUnit.NET if that matters.

+3
source share
3 answers

ReSharper . :

namespace SomeNamespace
{
    public class Specs
    {
        public class when_something_happens
        {
            Because of = () => {};
            It should_do_something = () => {};
        }
    }
}

, , .. :

namespace SomeNamespace
{
    public class when_something_happens
    {
        Because of = () => {};
        It should_do_something = () => {};
    }
}

ReSharper , :

  • .
  • >= 1 (It), = = 1 (Behaves_like<>)
+7

MSpec Visual Studio ReSharper, MSpec , : http://marcinobel.com/index.php/mspec-bdd-installer/ p >

0

" , " ReSharper XUnit.net . Test Explorer .

0

Source: https://habr.com/ru/post/1719766/


All Articles