You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the test/LondonTravel.Skill.NativeAotTests directory in the terminal
Run dotnet run -- --info
Expected behavior
No exception is shown and the process exits with an exit code of 0.
Actual behavior
The process exits with an exit code of -532462766 and prints the following at the end of the console output:
<SNIP - Lots of other output before this>Registered tools: TrxCompareTool Command: ms-trxcompare Name: TRX comparer tool Version: 1.2.1 Description: This tool allows to compare and highights differences between 2 TRX reports Tool command line providers:Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'ms-trxcompare' was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Microsoft.Testing.Platform.CommandLine.CommandLineHandler.<PrintInfoAsync>g__DisplayRegisteredToolsInfoAsync|36_5(ITool[] availableTools, List`1 toolExtensions) in /_/src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineHandler.cs:line 572 at Microsoft.Testing.Platform.CommandLine.CommandLineHandler.PrintInfoAsync(ITool[] availableTools) in /_/src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineHandler.cs:line 440 at Microsoft.Testing.Platform.Hosts.TestHostBuilder.BuildAsync(String[] args, ApplicationLoggingState loggingState, TestApplicationOptions testApplicationOptions, IUnhandledExceptionsHandler unhandledExceptionsHandler, DateTimeOffset createBuilderStart) in /_/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs:line 296 at Microsoft.Testing.Platform.Builder.TestApplicationBuilder.BuildAsync() in /_/src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs:line 113 at TestingPlatformEntryPoint.Main(String[] args) in C:\Coding\martincostello\alexa-london-travel\artifacts\obj\LondonTravel.Skill.NativeAotTests\debug\TestPlatformEntryPoint.cs:line 17 at TestingPlatformEntryPoint.<Main>(String[] args)
Additional context
Found while trying to work out how to get tests to either timeout or blame hangs before opening #3095.
The text was updated successfully, but these errors were encountered:
martincostello
changed the title
--info argument for native AoT tests throws an argument
--info argument for native AoT tests throws an exception
Jun 13, 2024
Describe the bug
A
KeyNotFoundException
occurs when running a native AoT test program when passed the--info
argument.Steps To Reproduce
test/LondonTravel.Skill.NativeAotTests
directory in the terminaldotnet run -- --info
Expected behavior
No exception is shown and the process exits with an exit code of 0.
Actual behavior
The process exits with an exit code of
-532462766
and prints the following at the end of the console output:Additional context
Found while trying to work out how to get tests to either timeout or blame hangs before opening #3095.
The text was updated successfully, but these errors were encountered: