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

Create a proper MSBuild ToolTask based VSTestTask #2702

Merged
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4479d26
Rename VSTestTask to VSTestForwardingTask (#680)
mcartoixa Jul 2, 2022
2258b9f
Refactor the VSTestForwardingTask to use the MSBuild infrastructure (…
mcartoixa Jul 2, 2022
d6d11ad
Create a ToolTask based VSTestTask that integrates nicely in the MSBu…
mcartoixa Jul 2, 2022
e57eea0
Initialize the VsTestUseConsole property during acceptance tests
mcartoixa Jul 7, 2022
16e75ab
Fix various issues raised by the latest review
mcartoixa Jul 12, 2022
a99fe16
Simplify the handling of null values
mcartoixa Jul 17, 2022
2155366
Log messages to MSBuild instead of to the console
mcartoixa Jul 17, 2022
886a2d6
Integrate changes from the latest code review
mcartoixa Jul 31, 2022
37ba20b
Merge branch 'main' into vstesttask-complete
nohwnd Sep 29, 2023
6f6fdda
Patch dotnet with newest build task
nohwnd Sep 29, 2023
61e5df5
Merge branch 'main' into vstesttask-complete
nohwnd Oct 12, 2023
dc4da9e
wip
nohwnd Oct 12, 2023
cf3fb90
rnm
nohwnd Oct 12, 2023
3d98927
revert tests
nohwnd Oct 12, 2023
4824364
tests
nohwnd Oct 12, 2023
399d9a8
Try adding msbuild specialized logger to output errors on tests
nohwnd Oct 12, 2023
3198356
Use simpler logger
nohwnd Oct 13, 2023
db4cde3
wip
nohwnd Nov 10, 2023
2255f3e
fix no-source
nohwnd Nov 14, 2023
a0b5639
fix no-source
nohwnd Nov 14, 2023
3585554
add message for full error
nohwnd Nov 15, 2023
b7760e6
Revert playground
nohwnd Nov 15, 2023
d46898c
Revert console logger
nohwnd Nov 15, 2023
f2df5fa
Revert integration tests
nohwnd Nov 15, 2023
9f17c68
Revert change in integration tests
nohwnd Nov 15, 2023
47058ee
Fix test
nohwnd Nov 15, 2023
bafd154
Revert test unignore
nohwnd Nov 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initialize the VsTestUseConsole property during acceptance tests
The `$(VSTestUseConsole)` should be set to `True` when running the `dotnet test` command to keep the legacy behavior. Adding it during the tests for now: it should be set in the command itself eventually.
  • Loading branch information
mcartoixa committed Apr 2, 2023
commit e57eea0f55d854ccd3817529e9677bafae09a25a
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ public void InvokeDotnetTest(string arguments, Dictionary<string, string?>? envi

var vstestConsolePath = GetDotnetRunnerPath();

//TODO: set this property by default in the dotnet test command (cf. https://github.com/microsoft/vstest/pull/2702)
debugEnvironmentVariables["VsTestUseConsole"] = "True";

if (arguments.Contains(".csproj"))
{
arguments += $@" -p:VsTestConsolePath=""{vstestConsolePath}""";
Expand Down