I understand that junit is specifically for unit testing, but please read about my situation below.
I have a command line application written in Java, but I use GraalVM to compile native binaries of my app for Windows, Linux, and Mac. The issue is that sometimes the native binaries for my app will behave a little differently depending on what operating system is being used. Because of that, I want to automate the testing my command line application on all three operating systems, so that I can ensure that I easily take notice of when something is not working as expected.
To clarify, my hope is that I could use something like junit (or some other testing tool) to interact with my command line application by calling my app's native binary with some arguments, then watch for what text gets printed back out. If the text printed by my command line app matches what I expect, then the test passes.
Again, I know and understand that this is not junit's primary use case, but is this something that I can get junit to do? If so, how? If not, what other tool/framework would you recommend that I look at?
Thanks!