Automatic parsing tools

I am working on automating the build process of an iOS project using the Jenkins command line tool and xcodebuild . I can also test the application on a simulator using the UIAutomation test scripts ( instruments command line utility). But I would like to use other tools like Time Profiler, Leaks, etc. Together with automation to automatically check for incorrect behavior.

Although I can create my own template and run it using automation, the problem is that I cannot parse the results of these other tools. Is there a way, for example, to find out that there is a leak in my code and trigger an email (from jenkins)?

+4
source share
1 answer

It is possible (I did it), but it is terribly difficult to do well. You need something to translate the results of the Instrument results to something that Jenkins can understand. You can use XSLT (I would not recommend it) or write a script in perl / python / etc.

The Jenkins Xcode plugin is a great Jenkins Xcode automation tool.

https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin

As an aside, building a CI environment around UIAutomation is feasible, but there are a lot of mistakes: the Jenkins user must have the correct permission set for using the dev tools, must be in the correct group, and have the user interface to enter the user interface for the simulator to work correctly. Make sure you can go this far before investing too much time in parsing tool output.

+1
source

Source: https://habr.com/ru/post/1390027/


All Articles