Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executor 'executor://cppunittestexecutor/v1' not found #5267

Open
primalspacesystems opened this issue Sep 5, 2024 · 0 comments
Open

Executor 'executor://cppunittestexecutor/v1' not found #5267

primalspacesystems opened this issue Sep 5, 2024 · 0 comments

Comments

@primalspacesystems
Copy link

Description

This seems to be most appropriate repo that I can find, but please correct me if there's a better place.

I have C++ unit tests setup using the following framework: Microsoft::VisualStudio::CppUnitTestFramework

This has been working for about 8 years, but trying to run the tests after updating to 17.11.2 results in the warning below, and no tests are run.

Could not find test executor with URI 'executor://cppunittestexecutor/v1'. Make sure that the test executor is installed and supports .net runtime version .

My Bing skills can't seem to locate what I need to install or where, or if I need to update the path or not.

Steps to reproduce

Set up a test using this macro:

#define TEST_METHOD_CATEGORY( test_name, category_name )
BEGIN_TEST_METHOD_ATTRIBUTE( test_name )
TEST_METHOD_ATTRIBUTE( L"Category", L#category_name )
TEST_PRIORITY( 0 )
END_TEST_METHOD_ATTRIBUTE()
TEST_METHOD( test_name )

And this code:
TEST_METHOD_CATEGORY( BitArrayTests, "BitReader" )
{
Assert::IsTrue( false );
}

Expected behavior

The test runs and fails.

Actual behavior

All the tests (713) are detected and displayed in the Test Explorer, however, they will not run.

Diagnostic logs

Could not find test executor with URI 'executor://cppunittestexecutor/v1'. Make sure that the test executor is installed and supports .net runtime version .

d:>vstest.console.exe /ListExecutors
VSTest version 17.11.0 (x64)

The following Test Execution Add-Ins are available:
Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators.SerialTestRunDecorator
Uri: executor://CodedWebTestAdapter/v1
Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators.SerialTestRunDecorator
Uri: executor://MSTestAdapter/v1
Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators.SerialTestRunDecorator
Uri: executor://WebTestAdapter/v1
Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators.SerialTestRunDecorator
Uri: executor://CppUnitTestExecutor/v1

Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators.SerialTestRunDecorator
Uri: executor://UAPCppExecutorIdentifier

Environment

Microsoft Visual Studio Community 2022
Version 17.11.2
VisualStudio.17.Release/17.11.2+35222.181
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA725
Microsoft Visual C++ 2022

ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 17.11.230.51983
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2012 17.11.230.51983
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 17.11.230.51983
Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio 2.6.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 17.11.230.51983
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.5000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 4.11.0-3.24376.4+5e3a11e2e7f952da93f9d35bd63a2fa181c0608b
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeLensOopProviderCommands Extension 1.0
CodeLensOopProviderCommands Visual Studio Extension Detailed Info

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 17.0.24138.2
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

GitHub Copilot 0.2.1634.3922
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Linux Core Dump Debugging 1.0.9.35103
Enables debugging of Linux core dumps.

Microsoft Azure Hive Query Language Service 2.6.5000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service 2.6.5000.0
Language service for Azure Stream Analytics

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.11.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

P4VS - Helix Plugin for Visual Studio 2021.2.238.7192
P4VS is the Helix Plugin for Microsoft Visual Studio. P4VS provides developers working within Visual Studio access to Helix version control features, including check in/check out, view file history, and more.

Python - Django support 17.0.24138.2
Provides templates and integration for the Django web framework.

Python - Profiling support 17.0.24138.2
Profiling support for Python projects.

Python with Pylance 17.0.24138.2
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Razor (ASP.NET Core) 17.11.3.2442001+68650a7d94261bc56a1f4bc522c2ee35314b1abb
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.11.38.0
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0
Hosting json editor into a tool window

TypeScript Tools 17.0.30715.2002
TypeScript Tools for Microsoft Visual Studio

Visual Assist 10.9.2528.0
For more information about Visual Assist, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c)1997-2023 Whole Tomato Software, LLC

Visual Basic Tools 4.11.0-3.24376.4+5e3a11e2e7f952da93f9d35bd63a2fa181c0608b
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development 1.0.9.35103
Visual C++ for Linux Development

Visual F# Tools 17.11.0-beta.24317.3+c07c8ebad62f6629b36349381991a299598a8d74
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant