Created
September 9, 2014 09:06
-
-
Save ligi/1fc7db5a2ad4e264e916 to your computer and use it in GitHub Desktop.
cucumber html with screenshots generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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