uiatotap
A filter that turns UIAutomation output into TAP output
Install
npm install -g uiatotap
Example
With a runtests.sh
file containing something like this
#!/usr/bin/env bash instruments -w "<deviceid>" -t "<template path>" "path/to/My.app" -e UIASCRIPT "./uiautomation.js" -e UIARESULTSPATH "./output"
Pipe the output through uiatotap
./runtests.sh | uiatotap
Outputs
TAP version 13# Add Single Templateok 1 correct titleok 2 correct duration displaynot ok 3 correct Fade In displayok 4 correct Fade Out displayok 5 did add template item 1..5# tests 5# pass 4 # fail 1