I have a build pipeline in Azure DevOps and I'm using the .NET Core task for applying unit testing.
I need to get the result of the unit tests in variables. For example, if there are 10 tests cases and two failed, I need to get something like:
failedTestCases = 2
succeededTestCases = 8
This is because I need those values in the next tasks. Is there a way to do that?
To be clear, I don't need to publish the results, they are already being published, I need to get those values in execution time.

