Hey Nadeem,
If your unit tests are really isolated they will have same behaviour on your local developer workstation, isnt it?
On emitting details from pipelines:
- If your pipelines are running unit test code on a Microsoft hosted agent then perhaps it will not be easy, as these hosts are isolated and tests are also assumed to be run in isolation, not sure Microsoft will let you connect to any external services except the one configured via vulnerability scanning.
- I assume this will be easy if you standup your own build agents in your on-prem network or Azure Virtual network, you can then log errors or exceptions to windows eventviewer or to custom log files, etc.
Hopt this helps.
Thanks,
Vaibhav