IntelliTect / TestTools

A collection of tools for aiding in test automation
MIT License
10 stars 7 forks source link

Added support for running Execute() tests on Linux. #78

Closed MarkMichaelis closed 2 years ago

MarkMichaelis commented 4 years ago

@COsborn2 - can you please check this works on Mac and Linux. If not, suggestions welcome. :)

COsborn2 commented 4 years ago

@MarkMichaelis "ping.exe" won't exist on UNIX platforms, so that doesn't work. I'll try to think of something that exists on a UNIX platform and on Windows so we can test that method.

MarkMichaelis commented 4 years ago

Oh.. bummer... I thought ping would work. I tried it on WSL - which is how I came up with the different command-line arguments. Hmmm.....

MarkMichaelis commented 4 years ago

Yeah... I was surprised I had the "exe" extension and realized it was a problem when Cameron pointed raised the issue. :( What if we check for "ping" and Assert.Inconclusive() if it isn't available? Of course I'm not sure of an easy way to do that besides attempting to execute the process and catching the exception. Do you have a better suggestion that "ping?" Preferably we use something that is available on both Linux and Windows in Azure DevOps.

MarkMichaelis commented 4 years ago

@COsborn2, can you try this on your mac please and let us know what happens?

BenjaminMichaelis commented 2 years ago

Addressed in https://github.com/IntelliTect/TestTools.Console/pull/1