[NTLK] Continuous Integration for Einstein

Jake Bordens jake at allaboutjake.com
Thu May 5 19:28:59 EDT 2016

For those on the list who are interested:

With the help of TravisCI support, I was able to finally get Einstein's automated tests working.  Now when a developer pushes a new build, TravisCI will build and execute the test suite.

The problem was that Einstein uses the AddressBook framework to get the info for the owner card.  This means that there is a little dialog that asks the user for permission to access the address book.  In a headless environment, this dialog is never answered, and the tests time out and fail.  With a little magic, you an pre-authorize the address book, and then the tests run and pass.

So if you're building new features into Einstein, its probably worth the time to write some unit tests as well. 


More information about the NewtonTalk mailing list