-
Notifications
You must be signed in to change notification settings - Fork 106
Description
At present, test execution from Visual Studio causes Test Platform to load test adapters from multiple locations. For details refer RFC: https://github.com/Microsoft/vstest-docs/blob/master/RFCs/0022-User-Specified-TestAdapter-Lookup.md
For managed test projects, test adapters are generally available in the test dll output folder itself. Hence, if the adapter lookup is limited to the test dll folder only, then it can provide significant perf improvement. Our analysis shows 20% perf improvement when user executes <= 10 tests in a 10k NUnit test project. Similar improvement is seen for MSTest and xUnit test projects as well.
However, in case when NUnit VSIX adapter is installed, then the above assumption of adapter present in test dll output folder, does not hold true. In this scenario Test Explorer has to fallback to the old behavior of loading adapters from Extensions folder as well, thus incurring a perf hit.
Since in Dev16 we plan to deprecate VSIX test adapters, it will be good to put a message on NUnit VSIX adapters installation webpage recommending users to move to nuget based test adapter so that less users get impacted with perf degradation.