vendredi 23 août 2019

Visual Studio 2019 test explorer switched to "OR" filtering since 16.2.3

I upgraded Visual Studio 2019 to version 16.2.3, and now my Test Explorer filters differently from before. I used to be able to add multiple filters and they would be combined with "AND" filtering (like any sane search box), but since the new version it does "OR" filtering:

see description below

The image shows tests filtered for the search string Bar People and these are my tests:

public class BarTests
{
    [Fact] public void People_can_do_stuff() { }
    [Fact] public void Elephants_can_do_stuff() { }
}

public class GaaTests
{
    [Fact] public void People_can_do_stuff() { }
    [Fact] public void Elephants_can_do_stuff() { }
}

However, as you can see, it shows all tests with either "Bar" or "People. I want only tests that fall under both terms. If I recall correctly, before the update VS2019 used to do this.

How can I make the Visual Studio 2019 Test Explorer treat my filters as "AND" queries?

Aucun commentaire:

Enregistrer un commentaire