Skip to content

Instantly share code, notes, and snippets.

View kumarSC's full-sized avatar

Sushant Choudhary kumarSC

  • Atlassian
  • Sydney
View GitHub Profile
@kumarSC
kumarSC / XCodeUITestToJSON.sh
Last active November 5, 2015 02:55
Shell utility to capture latest test results from XCode UI Testing tool and convert it as JSON consumable for CI (Jenkins, Bamboo) or other reporting.
#!/bin/bash
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
reset=`tput sgr0`
command -v jq >/dev/null 2>&1 || { echo "${red}Script could not find jq command installed on system.Installing...${reset}" >&2; `brew install jq`; }
# command -v jq >/dev/null 2>&1 || { echo >&2 ". Aborting."; exit 1; }