Using go test capabilities a as testing framework for other system.

39 views
Skip to first unread message

eric...@gmail.com

unread,
Aug 27, 2016, 12:25:43 AM8/27/16
to golang-nuts
Hi everyone,

Let's say that I have a system (a C/C++ system with different binaries) and currently we use pytest to make functional testing in that system, execute commands with different arguments, retrieving the stdout, stderr and retcode for every execution. Pytest now gives us a good output and logs but I'm wondering if it's possible to make the same with Go.

So, the idea would be to have at the end a Go binary that I could execute and get an output similar that 'go test' produce, also the benchmark capabilities would be awesome, so you can now how much time takes every binary in their execution.

Do you know if something like this already exists?
Or what would be a good starting point to see how to use the 'go test' features from a go binary?

Thanks a lot!

-Erich
Reply all
Reply to author
Forward
0 new messages