Skip to content

Instantly share code, notes, and snippets.

@ligi
Created September 9, 2014 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ligi/1fc7db5a2ad4e264e916 to your computer and use it in GitHub Desktop.
Save ligi/1fc7db5a2ad4e264e916 to your computer and use it in GitHub Desktop.
cucumber html with screenshots generation
#!/bin/bash
mkdir Robotium-Screenshots
cd Robotium-Screenshots
while read str
do
echo "<pre>${str}</pre>"
if [[ $str =~ adb.*-s.*jpg ]]; then
`${BASH_REMATCH[0]}`
if [[ $str =~ Robotium-Screenshots\/(.*jpg) ]]; then
echo "<img src='${BASH_REMATCH[0]}'/>"
fi
fi
done
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment