1

I have some Integration Tests (very long running). If they are in main solution and I choose to run all tests these tests are also picked up. How to avoid it?

These tests are suppose to be running from scripts on CI. Traits does not help (AFAIK) cause R# also picks them up.

Krzysztof Morcinek
  • 1,011
  • 13
  • 42

2 Answers2

4

This question indirectly gave the answer: resharper test runner - how to execute by category?

In xUnit: You add a Trait:

[Trait("Category", "LongRunning")]
[Fact]
public void Test()
{
}

In "ReSharper->Options->Unit Testing" you need to exclude category "LongRunning":

P

PS, when saving this change you probably want to save it to "team-shared" layer so your team have it the same way.

Community
  • 1
  • 1
Krzysztof Morcinek
  • 1,011
  • 13
  • 42
1

Use different playlists in resharper, or run different traits (Test Explorer). In Visual Studio Test, how to make a playlist which automatically excludes certain tests?

Community
  • 1
  • 1
Jocke
  • 2,189
  • 1
  • 16
  • 24