Skip to content

Commit

Permalink
Add a 'Failed Tests Details' table
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuBuisson committed Jun 24, 2017
1 parent d4fd8b0 commit 004032b
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions Examples/HtmlReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
.right-header {
margin-top: 47px;
text-align: left
text-align: left;
}
.right-header-data {
color: #777;
Expand Down Expand Up @@ -116,7 +116,7 @@
color: #a94442;
}
.tablePanel {
margin-top: 32px;
margin-top: 18px;
}
.tablePanel .panel-title {
font-weight: 600;
Expand Down Expand Up @@ -329,7 +329,7 @@ <h2>9</h2>
<h2 class="panel-title"> Per Function Information</h2>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered table-condensed text-center">
<table class="table table-hover table-condensed text-center">
<thead>
<tr>
<th>Function Name</th>
Expand Down Expand Up @@ -465,13 +465,13 @@ <h2>1.11</h2>
</div>
</div>
</div>
<div class="row col-sm-offset-3 col-md-offset-1 col-lg-offset-2 col-sm-7 col-md-9 col-lg-8">
<div class="row col-sm-offset-3 col-md-offset-1 col-lg-offset-2 col-sm-6 col-md-8 col-lg-7">
<div class="panel panel-default tablePanel">
<div class="panel-heading">
<h2 class="panel-title"> Per Function Information</h2>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered table-condensed text-center">
<table class="table table-hover table-condensed text-center">
<thead>
<tr>
<th>Function Name</th>
Expand Down Expand Up @@ -606,13 +606,50 @@ <h3 class="panel-title"><i class="fa fa-pie-chart" aria-hidden="true">&nbsp;</i>
</div>
</div>
</div>
<div class="row col-sm-offset-3 col-md-offset-1 col-lg-offset-2 col-sm-7 col-md-9 col-lg-8">
<div class="panel panel-default tablePanel">
<div class="panel-heading">
<h2 class="panel-title"> Failed Tests Details</h2>
</div>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th>File</th>
<th>Line</th>
<th>Describe</th>
<th>Test Name</th>
<th>Error Message</th>
</tr>
</thead>
<tbody>
<tr>
<td>Coveralls.Tests.ps1</td>
<td>97</td>
<td>Get-CoverageArray</td>
<td>Should return 2 objects with the value 1</td>
<td>Expected: {2}
But was: {12435679865326149789}</td>
</tr>
<tr>
<td>Coveralls.Tests.ps1</td>
<td>100</td>
<td>Get-CoverageArray</td>
<td>Should return 0 objects with the value 0</td>
<td>Expected: value to be empty but it was {12435679865326149789}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row col-sm-offset-3 col-md-offset-1 col-lg-offset-2 col-sm-6">
<div class="panel panel-default tablePanel">
<div class="panel-heading">
<h2 class="panel-title"> Per Function Information</h2>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered table-condensed text-center">
<table class="table table-hover table-condensed text-center">
<thead>
<tr>
<th>Function Name</th>
Expand Down Expand Up @@ -802,6 +839,6 @@ <h2 class="panel-title"> Per Function Information</h2>
for (var i = 0; i < testCoverageCharts.length; i++) {
createTestCoverageChart(testCoverageCharts[i]);
}
</Script>
</script>
</body>
</html>

0 comments on commit 004032b

Please sign in to comment.