diff --git a/docs/extensions/video-and-voice-recorder.md b/docs/extensions/video-and-voice-recorder.md new file mode 100644 index 0000000000..6d8d48b14c --- /dev/null +++ b/docs/extensions/video-and-voice-recorder.md @@ -0,0 +1,41 @@ +Video and Voice recorder data collector is a VSTest data collector that ships in `Microsoft.TestPlatform` nuget package and `Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI` (the VSIX we insert into VisualStudio). + +It serves to record video and sound of each test, and optionally publish the result only for failing tests. + +Example usage is: + +```bash +vstest.console.exe --collect:"Screen and Voice Recorder" bin\Debug\net10.0\mstest320.dll +``` + +This will record video to the TestResults folder (under some guid). + +Additional options can be provided via runsettings. + +```xml + + + + + + + + + +``` + + +Official examples are here, including the runsettings shown above: +https://learn.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=visualstudio#videorecorder-data-collector + +https://learn.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=visualstudio#example-runsettings-file + +Files in the shipment (and similar layout in the VSIX): + +tools\net462\Common7\IDE\Extensions\TestPlatform\Extensions\Microsoft.VisualStudio.TestTools.DataCollection.MediaRecorder.Model.dll +tools\net462\Common7\IDE\Extensions\TestPlatform\Extensions\Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorderCollector.dll +tools\net462\Common7\IDE\Extensions\TestPlatform\Extensions\VideoRecorder\Microsoft.VisualStudio.QualityTools.VideoRecorderEngine.dll +tools\net462\Common7\IDE\Extensions\TestPlatform\Extensions\VideoRecorder\Microsoft.VisualStudio.TestTools.DataCollection.MediaRecorder.Model.dll +tools\net462\Common7\IDE\Extensions\TestPlatform\Extensions\VideoRecorder\VSTestVideoRecorder.exe + +Previously there was also recorder for `V1`. That was removed with TPv0 removal from VS2026 in https://github.com/microsoft/vstest/pull/15247, where VSTest Video recorder was also removed by mistake. diff --git a/eng/verify-nupkgs.ps1 b/eng/verify-nupkgs.ps1 index 159b53fadb..f83a19e7bd 100644 --- a/eng/verify-nupkgs.ps1 +++ b/eng/verify-nupkgs.ps1 @@ -19,8 +19,8 @@ function Verify-Nuget-Packages { $expectedNumOfFiles = @{ "Microsoft.CodeCoverage" = 75 "Microsoft.NET.Test.Sdk" = 25 - "Microsoft.TestPlatform" = 537 - "Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI" = 380 + "Microsoft.TestPlatform" = 542 + "Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI" = 388 "Microsoft.TestPlatform.Build" = 20 "Microsoft.TestPlatform.CLI" = 480 "Microsoft.TestPlatform.Extensions.TrxLogger" = 34 @@ -186,6 +186,8 @@ function Verify-NugetPackageExe { "TestPlatform\SettingsMigrator.exe" = "x86" "dump\DumpMinitool.exe" = "x86-64" + + "VideoRecorder\VSTestVideoRecorder.exe" = "x86" } $errs = @() diff --git a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj index e04dc770cf..9e37be6d23 100644 --- a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj +++ b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj @@ -92,7 +92,7 @@ - + diff --git a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec index f8c51f1489..74e72e60ef 100644 --- a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec +++ b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec @@ -180,11 +180,15 @@ + + + + @@ -201,6 +205,7 @@ + diff --git a/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj b/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj index 05c6992e46..4df346106f 100644 --- a/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj +++ b/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj @@ -188,13 +188,16 @@ - + + Extensions\VideoRecorder + + Extensions Extensions - + Extensions