diff --git a/requirements.txt b/requirements.txt index c92df1bca6b27947e07a228818e9b1015f4a47a8..2c8b44f1d4ef33cd592c4487a4e6fff9c59b6b39 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ RESTinstance==1.0.0rc4 robotframework-dependencylibrary==1.0.0.post1 robotframework-jsonlibrary==0.3 robotframework-jsonschemalibrary==1.0 +robotframework-requests==0.5.0 diff --git a/scripts/launch-validation.sh b/scripts/launch-validation.sh new file mode 100644 index 0000000000000000000000000000000000000000..59030577655abb1e4a05e0e092b7b8af5cd105ba --- /dev/null +++ b/scripts/launch-validation.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Starting check on ROBOT CODE" + +for FILE in $(find . -name "*.robot"); do + echo "Syntax check on ${FILE}" + robot --dryrun -d /tmp ${FILE} +done diff --git a/scripts/run-all.bash b/scripts/run-all.bash new file mode 100644 index 0000000000000000000000000000000000000000..75eef6bc14826f9ceead584c963943677c0fa2b4 --- /dev/null +++ b/scripts/run-all.bash @@ -0,0 +1,14 @@ +#!/bin/bash + +## Launch robot tests validator + +/bin/bash /scripts/launch-validation.sh > logs/robot_stdout.log 2> logs/robot_stderr.log + +## Filter failed Keywords +grep -r10n "| FAIL |" logs/robot_stdout.log | grep -v "Output:" | grep -v "Log:" | grep -v "Report:" > logs/failures.log +rm -f logs/robot_stdout.log + + +## Filter Errors on code +grep -rn " ERROR " logs/robot_stderr.log | grep -v "File has no tests or tasks" > logs/errors.log +rm -f logs/robot_stderr.log