Compare commits

..

2 Commits

Author SHA1 Message Date
3df1165806 cleaning 2021-06-24 15:39:45 +02:00
a303f4d772 génération d'une page html contenant tout les rapports 2021-06-24 15:39:18 +02:00
5 changed files with 4 additions and 92 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ settings.json
*__pycache__/* *__pycache__/*
geckodriver.log geckodriver.log
*/output/* */output/*
*.html*

View File

@ -1,84 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Unittest Results</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2 class="text-capitalize">Unittest Results</h2>
<p class='attribute'><strong>Start Time: </strong>2021-06-24 15:02:41</p>
<p class='attribute'><strong>Duration: </strong>39.96 s</p>
<p class='attribute'><strong>Summary: </strong>Total: 3, Pass: 3</p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-10 col-md-10">
<table class='table table-hover table-responsive'>
<thead>
<tr>
<th>__main__.PythonOrgSearch</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class='success'>
<td class="col-xs-10">test_connexion_admin</td>
<td class="col-xs-1">
<span class="label label-success" style="display:block;width:40px;">Pass</span>
</td>
<td class="col-xs-1">
</td>
</tr>
<tr class='success'>
<td class="col-xs-10">test_create_departement</td>
<td class="col-xs-1">
<span class="label label-success" style="display:block;width:40px;">Pass</span>
</td>
<td class="col-xs-1">
</td>
</tr>
<tr class='success'>
<td class="col-xs-10">test_delete_departement</td>
<td class="col-xs-1">
<span class="label label-success" style="display:block;width:40px;">Pass</span>
</td>
<td class="col-xs-1">
</td>
</tr>
<tr>
<td colspan="3">
Total: 3, Pass: 3 -- Duration: 39.96 s
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('td').on('click', '.btn', function(e){
e.preventDefault();
e.stopImmediatePropagation();
var $this = $(this);
var $nextRow = $this.closest('tr').next('tr');
$nextRow.slideToggle("fast");
$this.text(function(i, text){
if (text === 'View') {
return 'Hide';
} else {
return 'View';
};
});
});
});
</script>
</body>
</html

View File

View File

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

View File

@ -1,6 +0,0 @@
>>>
.....
----------------------------------------------------------------------
Ran 5 tests in 77.731s
OK