Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publicar os resultados dos testes no Github Pages #1692

Closed
wants to merge 8 commits into from
4 changes: 4 additions & 0 deletions _config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exclude:
- load-test
- misc
- participantes
2 changes: 1 addition & 1 deletion executar-teste-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Use este script para executar testes locais

RESULTS_WORKSPACE="$(pwd)/load-test/user-files/results"
GATLING_BIN_DIR=$HOME/gatling/bin
GATLING_BIN_DIR=${GATLING_HOME:-$HOME/gatling/3.10.3}/bin
GATLING_WORKSPACE="$(pwd)/load-test/user-files"

runGatling() {
Expand Down
29 changes: 29 additions & 0 deletions generate-gh-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

cd resultados || true

RESULT_LINE=""
HTML_FILES="$(ls ./*/*/index.html)"

for HTML_FILE in $HTML_FILES; do
R_USER="$(echo "${HTML_FILE}" | cut -f2 -d/)"
RESULT_LINE+="<li><a href=\"${HTML_FILE}\" alt=\"${R_USER}\">${R_USER}</a></li>
"
done

cat <<EOF > "index.html"

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Resultado testes por usu&aacute;rio</title>
</head>
<body>
<ul>
$RESULT_LINE
</ul>
</body>
</html>

EOF
Loading