I have a C# Visual Studio 2017 solution with multiple projects and test projects, a vNext build pipeline with VS Test task. The "Run only impacted tests" option is enabled. Clean options are unchecked.
I start a build with no changesets (no code changes). In the test agent's workspace, I can verify that there is no rebuild occurring: the project references, the Copy Local's, pre/post build events, Copy if Newer's are all good. No assemblies are replaced after the build.
Tests from some projects are not run (which is correct), but tests from some projects are always run.
The project properties of these test projects seem identical.
Does anybody have a suggestion on where to look?
Please make sure no failed tests in previous build/test, and no new files generated during last build to effect current build/test.
Please refer to below links to know about what are the tests that get automatically selected and policies that can condition test selection for Test Impact Analysis .
Test Impact Analysis (TIA) will look at an incoming commit, and select the set of relevant tests – these will have 3 components
TIA has: