We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We use environment variables in UI tests to specify on our build machines where our application (executable) can be found.
dotnet test UITests/UITests.sln -e UITestExe="C:\OurApp.exe"
By defining an environment variable that ends on .exe or .dll the dotnet test does not find unit tests anymore.
.exe
.dll
dotnet test
Reason: In this case dotnet test searches the file specified as environment variable for unit tests.
dll
It seems the the PR #28662 did not solve this completely.
Version:
.NET SDK: Version: 8.0.204 Commit: c338c7548c Workload version: 8.0.200-manifests.7d36c14f
The text was updated successfully, but these errors were encountered:
Perhaps you can work around it by setting the environment variable with a directive instead, as shown in #40484.
Sorry, something went wrong.
Yes, this works: dotnet [env:UITestExe="C:\OurApp.exe"] test UITests/UITests.sln
dotnet [env:UITestExe="C:\OurApp.exe"] test UITests/UITests.sln
I did not find any information about this special syntax. Is this somewhere documented?
No branches or pull requests
We use environment variables in UI tests to specify on our build machines where our application (executable) can be found.
dotnet test UITests/UITests.sln -e UITestExe="C:\OurApp.exe"
By defining an environment variable that ends on
.exe
or.dll
thedotnet test
does not find unit tests anymore.Reason: In this case dotnet test searches the file specified as environment variable for unit tests.
dll
works but.dll
does not workIt seems the the PR #28662 did not solve this completely.
Version:
The text was updated successfully, but these errors were encountered: