I'm trying to run some functional unit tests using vstest.console in PowerShell, and if any tests fails, I would perform a certain action (in this case, it would be rolling back an installation). How do I go about doing that.
Here is the current content of the PowerShell script I have.
$command = "<path_to_vstest_directory>\vstest.console.exe"
$arguments = @('<test dll>', '/Tests:"<name_of_specific_test_to_run>"')
&$command $arguments