How to run go tests without the Mac OS Firewall popup? How to solve it to run the tests in the Travis?

If you are running tests in Go which does requests to some application in a Mac Os X which has not the OS Developer certificate (such as using binary built locally by you) then, you will see the following dialog request permission to allow the execution for each call made.

You can suppressing it by running the following command. Note that, you will pass as arg the path with the name of the binary used by your tests.

# allow run the tests without the Mac OS Firewall popup shows for each execution
codesign --deep --force --verbose --sign - ./<path>/app-name

The above solution will work for Travis as well. Another option would be generate the OS Developer certificate (*.p12) and assign it to your application. See the blog which has a good explanation over it.  

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s