tSQLt-TestAdapter icon indicating copy to clipboard operation
tSQLt-TestAdapter copied to clipboard

Visual Studio 2022: can't get tSLQt Test Adapter to see tSQLt tests in projects

Open thirstylemur opened this issue 3 years ago • 0 comments

Describe the bug not seeing an extension update for VS 2022 so i installed from Roaming Extensions (VS 2019 version) tests are not being discovered with error of "Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again."

To Reproduce Steps to reproduce the behavior:

  1. used current company project and created second project in solution titled xxx.UnitTests (xxx being current project name)
  2. imported tSQLt framework from database to create test project
  3. created runsettings file (noticed vs2022 uses "Data Source=(localdb)\ProjectModels" while 2019 uses "Data Source=(localdb)\ProjectV13")
  4. created references to both master and existing project (can't use target platform of Microsoft Azure SQL Database because of missing views in Master that tSQLt uses)
  5. build projects (both are successful)
  6. no tests discovered with warning message stated in description

Expected behavior when click RunAll, it should discover all tests

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows Server 2019
  • Browser: Chrome
  • Visual Studio 2022
  • Test Adapter 2019
  • Target Framework: net452 and net472
  • Target Platform: SQL Server 2019 or Azure SQL Database Managed Instance

Test Output

========== Starting test discovery ========== ========== Test discovery skipped: All test containers are up to date ========== Starting test discovery for requested test run ========== Starting test discovery ========== No test is available in C:<...>\Project.UnitTests.dll C:<...>\Project.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again. ========== Test discovery finished: 0 Tests found in 1 sec ========== No tests found to run.

=== Please at me @GoEddie so I receive a notification

thirstylemur avatar Jun 01 '22 14:06 thirstylemur