using "dotnet test" commandline with WinUI test throws null reference exception from generated code #127
ScottAtBarco
started this conversation in
General
Replies: 2 comments 1 reply
-
Dotnet test isn’t supported. It is expecting to run the tests as packaged test apps which require vstest.console. having said that, the WinUIEx test libraries are going to be deprecated as I don’t have the time to maintain this and the unit test story for WinUI has changed since this library was initially written |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response. That makes sense, I guess. Can you point me to anything that describes how “the unit test story for WinUI has changed”?
From: Morten Nielsen ***@***.***>
Sent: Wednesday, June 21, 2023 12:19 PM
To: dotMorten/WinUIEx ***@***.***>
Cc: Bigger(EXT), Scott ***@***.***>; Author ***@***.***>
Subject: Re: [dotMorten/WinUIEx] using "dotnet test" commandline with WinUI test throws null reference exception from generated code (Discussion #127)
Dotnet test isn’t supported. It is expecting to run the tests as packages test apps which require barest.console.
having said that, the WinUIEx test libraries are going to be deprecated as I don’t have the time to maintain this and the unit test story for WinUI has changed since this library was initially written
—
Reply to this email directly, view it on GitHub<#127 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5LLZC7WMXNZY4MFHA2INEDXMNCJDANCNFSM6AAAAAAZPEKG34>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
This message is subject to the following terms and conditions: MAIL DISCLAIMER<https://www.barco.com/en/maildisclaimer>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to get CI/CD github actions working for a unit test gate for my WinUI app, I need to get "dotnet test" to work from the command line and ultimately from the .yml file. When I build and then run the command "dotnet test --no-build" all the tests run except those that are UI test dlls. For the UI tests, I get the following exception from the generated code:
The code is something like:
A dirt simple test, silly as it is, that fails:
When I run inside VS2022, all the tests pass. Using "dotnet test", all the tests fail as described above.
Am I doing something wrong, or is this not supported? How are people incorporating UI tests like this into their github workflows?
Beta Was this translation helpful? Give feedback.
All reactions