Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
docs(layout): add test report
Browse files Browse the repository at this point in the history
Signed-off-by: Naylin Medina <[email protected]>
  • Loading branch information
Naylin15 committed Sep 28, 2018
1 parent b31cc78 commit 32a63bd
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<script src="{{ "/js/jazzy.js" | absolute_url }}" defer></script>
{% endif %}

{% if page.layout == 'testReport' %}
<link rel="stylesheet" href="{{ "/css/testReport.css" | absolute_url }}">
{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | absolute_url }}">

Expand Down
7 changes: 7 additions & 0 deletions _layouts/testReport.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: container
---

<div class="test-report">
{{ content }}
</div>
61 changes: 61 additions & 0 deletions css/testReport.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
---

.test-report {

p {
padding: 10px;
}

.total {
h2 {
margin-bottom: 30px;
}
}

.test-suite {
cursor: pointer;

&.passing {
h4 {
background-color: #A3D3A3;
padding: 4px 4px;
}
margin: 11.5px 0px;
border: groove;
border-color: #6fba6f;
}

&.failing {
h4 {
background-color: #fc8f8f;
padding: 4px 4px;
}
margin: 11.5px 0px;
border: groove;
border-color: #FA4444;

}
}

.passing {
&.row {
margin-left: 0px;
margin-right: 0px;
border-bottom: groove;
border-color: #6fba6f;
}
}

.failing {
&.row {
margin-left: 0px;
margin-right: 0px;
border-bottom: groove;
border-color: #FA4444;
}
}

}


104 changes: 102 additions & 2 deletions development/test-report/master/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,103 @@
---
layout: page
---
layout: testReport
---

<script>
let changeDisplay = function (id) {
$(id).slideToggle()
}
</script>


<div class="total row">
<div class="col-sm-12">
<h2>Test Results</h2>
</div>
<div class="col-sm-12">
<h2> 8 tests</h2>
</div>
</div>

<div>
<div class="test-suite row failing" onclick="changeDisplay('#test-1')">
<h4 class="col-sm-12">FlyveMDMInventoryAgentUITests</h4>
<h4 class="col-sm-12">1 test</h4>
</div>
<!-- Failing or passing class -->
<div id="test-1">
<div class="failing row">
<div class="title col-sm-12 dropdown-item">
<p>testTakeScreenshots</p>
</div>
<div class="time col-sm-12 dropdown-item">
<p>29.457s</p>
</div>
</div>
</div>
</div>

<div>
<div class="test-suite row passing" onclick="changeDisplay('#test-2')">
<h4 class="col-sm-12">FlyveMDMInventoryAgentTests</h4>
<h4 class="col-sm-12">7 tests</h4>
</div>
<div id="test-2">
<div class="passing row">
<div class="title col-sm-12">
<p>testAgentSettingsController</p>
</div>
<div class="time col-sm-12">
<p>0.020s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testCreateInventory</p>
</div>
<div class="time col-sm-12">
<p>0.045s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testFooterView</p>
</div>
<div class="time col-sm-12">
<p>0.017s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testInventoryTableView</p>
</div>
<div class="time col-sm-12">
<p>0.017s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testLoadingIndicatorView</p>
</div>
<div class="time col-sm-12">
<p>0.022s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testMessageLabel</p>
</div>
<div class="time col-sm-12">
<p>0.021s</p>
</div>
</div>
<div class="passing row">
<div class="title col-sm-12">
<p>testSendXMLInventory</p>
</div>
<div class="time col-sm-12">
<p>0.053s</p>
</div>
</div>
</div>

</div>

0 comments on commit 32a63bd

Please sign in to comment.