Bug Report T824083
Visible to All Users

Test Runner – The Test Runner fails after updating Microsoft.NET.Test.Sdk from 16.2.0 to 16.3.0 0

created 5 years ago

When running a test in a project where Microsoft.NET.Test.Sdk has been upgraded from 16.2.0 to 16.3.0 you get the following error when attempting to run a test:

An exception occurred while invoking executor 'executor://mstestadapter/v2': Access to the path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\TestResults\Deploy_xxxx 2019-10-16 15_17_33' is denied.

or similar (I have also seen the path reported as C:\WINDOWS\system32\TestResults\Deploy_xxxx)

I've attached a simple solution demonstrating the issue

The TestAdd test in UnitTestErrorTests will error
The TestAdd test in UnitTestOld will succeed.

Comments (3)
DevExpress Support Team 5 years ago

    Chris,

    Thank you for the provided project and steps.
    I was able to reproduce this issue locally. Please give us some time to research and fix it.
    Meanwhile would you please try to start Visual Studio under "administrator" and check if tests are correctly executed.

    CH CH
    Chris Hewitt (Licence) 5 years ago

      HI Alex,

      I’ve retested running Visual Studio as administrator and it works correctly.

      DevExpress Support Team 5 years ago

        Chris,

        Thank you for checking that the test runner works if Visual Studio is started with administrator privileges.

        Answers approved by DevExpress Support

        created 5 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Show previous comments (4)
          PW PW
          Przemyslaw Wlodarczak (DevExpress) 5 years ago

            Hello,

            I've created a separate ticket on your behalf (T827845: Test Runner - problem with DeploymentItem). It has been placed in our processing queue and will be answered shortly.

              The hotfix has fixed the problem!

              Thanks and cheers,

              Stefan

              PW PW
              Przemyslaw Wlodarczak (DevExpress) 5 years ago

                Stefan,

                Thank you for informing us. Don't hesitate to contact us in case of any further questions or issues.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.