modification pour la casse des noms de fichiers

This commit is contained in:
Aurélien Plancke 2021-06-24 17:17:15 +02:00
parent 86a04e8a07
commit 177aa06f38
7 changed files with 11 additions and 8 deletions

View File

@ -82,7 +82,7 @@ if __name__ == "__main__":
suppressionSiteDepartement.main()
unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(
report_name="01_création département",
report_name="01_création_département",
output="./ResultatTest",
combine_reports=True,
)

View File

@ -167,7 +167,7 @@ if __name__ == "__main__":
process.wait()
unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(
report_name="04_Absences tests",
report_name="04_Absences_tests",
output="./ResultatTest",
combine_reports=True,
)

View File

@ -398,7 +398,7 @@ if __name__ == "__main__":
driver.close()
unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(
report_name="05_Saisie note tests",
report_name="05_Saisie_note_tests",
output="./ResultatTest",
combine_reports=True,
)

View File

@ -447,7 +447,7 @@ if __name__ == "__main__":
process.wait()
unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(
report_name="06_Moyenne tests",
report_name="06_Moyenne_tests",
output="./ResultatTest",
combine_reports=True,
)

View File

@ -235,7 +235,7 @@ if __name__ == "__main__":
process.wait()
unittest.main(
testRunner=HtmlTestRunner.HTMLTestRunner(
report_name="07_Admission et passages tests",
report_name="07_Admission_et_passages_tests",
output="./ResultatTest",
combine_reports=True,
)

View File

@ -17,5 +17,5 @@ python3 05_saisie_note_test.py;
python3 06_test_moyenne.py;
python3 07_test_admission.py;
python3 deleteDepartement.py;
tree ./ResultatTest/ -H './ResultatTest/' -F -L 1 --noreport --charset utf-8 -P "*.html"> index.html
./scriptGenerateReportPage.sh

View File

@ -1,5 +1,5 @@
#!/bin/bash
TIME=$(date)
TIME=$(date +%d%m_%H%M%S)
echo '<!DOCTYPE html>
<html>
<head>
@ -33,6 +33,9 @@ echo '<!DOCTYPE html>
<a href="./ResultatTest/">./ResultatTest/</a><br>
' >> ./ResultatTest/Résumé_"${TIME}".html
for file in ./ResultatTest/*.html; do
echo '├── <a href="'$(basename "$file")'">'$file'</a><br>$(cat $file | grep "Summary")' >> ./ResultatTest/Résumé_"${TIME}".html
RESULT=$(cat $file | grep "Summary")
BASEFILE=$(basename $file)
LINK="${BASEFILE}"
echo "├── <a href=${LINK}>${BASEFILE}</a>'${RESULT}'<br>" >> ./ResultatTest/Résumé_${TIME}.html
done
echo '<br><br><br><br></body></html>' >> ./ResultatTest/Résumé_"${TIME}".html