vstest icon indicating copy to clipboard operation
vstest copied to clipboard

Make TestPlatform API call not hang and return error code instead

Open ManishJayaswal opened this issue 10 years ago • 4 comments

Description

We observed that the call to RunTests was hanging for ever. This was likely a bug in TP that subsequently got fixed but it would be nice to no hang and return error code so that the caller can continue.

ManishJayaswal avatar Oct 05 '16 21:10 ManishJayaswal

@KevinH-MS @ManishJayaswal an user may run tests that lasts for days (stress/endurance tests for instance). At the test platform layer there is no timeout enforcement, instead each test framework/adapter provides it's own construct for a timeout.

Test platform does listen to channel breaks or runner/host process termination, it does not hang in such cases.

codito avatar Oct 06 '16 01:10 codito

An example is IVSTestConsoleWrapper.RunTests. It appears that if it is called with a .runsettings file that does not conform to the expected schema (extra elements, etc), then the call dies silently and we never get any sort of callback.

halverson-dev avatar Oct 06 '16 03:10 halverson-dev

Triage: investigate.

pvlakshm avatar Nov 28 '16 05:11 pvlakshm

Fixed by commit: 74f65573d528c7c2c894ee74a9e6ebeb0e49dc9b

saikrishnav avatar Dec 14 '16 06:12 saikrishnav