diff --git a/01_creation_departement_test.py b/01_creation_departement_test.py index 39a39f4..2137922 100644 --- a/01_creation_departement_test.py +++ b/01_creation_departement_test.py @@ -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, ) diff --git a/04_creation_absence_test.py b/04_creation_absence_test.py index 248a61d..8a4ce5e 100644 --- a/04_creation_absence_test.py +++ b/04_creation_absence_test.py @@ -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, ) diff --git a/05_saisie_note_test.py b/05_saisie_note_test.py index 848f9b9..c35c018 100644 --- a/05_saisie_note_test.py +++ b/05_saisie_note_test.py @@ -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, ) diff --git a/06_test_moyenne.py b/06_test_moyenne.py index 72bddd9..b3e666e 100644 --- a/06_test_moyenne.py +++ b/06_test_moyenne.py @@ -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, ) diff --git a/07_test_admission.py b/07_test_admission.py index 0daf547..3e60049 100644 --- a/07_test_admission.py +++ b/07_test_admission.py @@ -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, ) diff --git a/lancement_de_tout_les_tests.sh b/lancement_de_tout_les_tests.sh index 38427a7..f84cf2b 100755 --- a/lancement_de_tout_les_tests.sh +++ b/lancement_de_tout_les_tests.sh @@ -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 diff --git a/scriptGenerateReportPage.sh b/scriptGenerateReportPage.sh index 0c946fc..9eaf827 100755 --- a/scriptGenerateReportPage.sh +++ b/scriptGenerateReportPage.sh @@ -1,5 +1,5 @@ #!/bin/bash -TIME=$(date) +TIME=$(date +%d%m_%H%M%S) echo ' @@ -33,6 +33,9 @@ echo ' ./ResultatTest/
' >> ./ResultatTest/Résumé_"${TIME}".html for file in ./ResultatTest/*.html; do - echo '├── '$file'
$(cat $file | grep "Summary")' >> ./ResultatTest/Résumé_"${TIME}".html + RESULT=$(cat $file | grep "Summary") + BASEFILE=$(basename $file) + LINK="${BASEFILE}" + echo "├── ${BASEFILE}'${RESULT}'
" >> ./ResultatTest/Résumé_${TIME}.html done echo '



' >> ./ResultatTest/Résumé_"${TIME}".html \ No newline at end of file