jekyll-report-dashboard 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/404.html +11 -0
- data/_includes/playwright-branch-list.html +7 -2
- data/_layouts/playwright-branch.html +7 -2
- data/_plugins/playwright-branch-index-generator.rb +28 -0
- data/coverage.markdown +14 -0
- data/index.markdown +48 -0
- data/playwright-branches.markdown +12 -0
- data/playwright-reports.markdown +26 -0
- data/releases.markdown +9 -0
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9785e357c759cf29fd19c9ae4f050bf7ca547969e43c5f44f32713f0d526c15d
|
4
|
+
data.tar.gz: 7d4bc5d69d306f07177296a268fac6417969e50ad1022581b98ae181a48a2ddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01a5e4062cd69bf7739060e76cfb2a6ecba26f74b8f58b3c4eebe83ac05337cc2be7a13310a29a8d7ab74f301a1f0532cdf1b23504be95405c15b8c0a32aec05
|
7
|
+
data.tar.gz: 8473544521ae9339d3115eae013e5bfb72271baca46a35a8226471629d9547a8ec3a88b04a500006c68a5511d2d9b29b2c64f5b1677468e3229327107d7f9fa2
|
data/404.html
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
---
|
2
|
+
permalink: /404.html
|
3
|
+
layout: default
|
4
|
+
---
|
5
|
+
|
6
|
+
<div class="my-3 mx-auto max-w-[37.5rem] text-center">
|
7
|
+
<h1 class="my-8 text-6xl leading-none tracking-tighter">404</h1>
|
8
|
+
|
9
|
+
<p><strong>Page not found :(</strong></p>
|
10
|
+
<p>The requested page could not be found.</p>
|
11
|
+
</div>
|
@@ -11,8 +11,13 @@
|
|
11
11
|
<a href="{{ branch_link | relative_url }}">View Previous Runs</a>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<!--
|
15
|
-
{% assign
|
14
|
+
<!-- get all of the run_ids in the branch, then reverse the list and get the first one -->
|
15
|
+
{% assign runs = "" | split: ',' %}
|
16
|
+
{% for run_id in site.data.playwright-reports.branches[branch_name] %}
|
17
|
+
{% assign runs = runs | push: run_id %}
|
18
|
+
{% endfor %}
|
19
|
+
|
20
|
+
{% assign latest_run_id = runs | reverse | first %}
|
16
21
|
{% assign data = site.data.playwright-reports.branches[branch_name][latest_run_id] %}
|
17
22
|
<!-- capture creates a link to the actual report file-->
|
18
23
|
{% capture report_link %}/playwright-reports/branches/{{branch_name}}/{{latest_run_id}}.html{% endcapture %}
|
@@ -2,8 +2,13 @@
|
|
2
2
|
layout: page
|
3
3
|
---
|
4
4
|
|
5
|
-
<!--
|
6
|
-
{% assign
|
5
|
+
<!-- get the run ids for the branch and sort them by newest to oldest -->
|
6
|
+
{% assign unsorted_runs = "" | split: ',' %}
|
7
|
+
{% for run_id in site.data.playwright-reports.branches[page.branch] %}
|
8
|
+
{% assign unsorted_runs = unsorted_runs | push: run_id %}
|
9
|
+
{% endfor %}
|
10
|
+
|
11
|
+
{% assign run_ids = unsorted_runs | reverse %}
|
7
12
|
{% for run_id in run_ids %}
|
8
13
|
<!-- loop through the run ids -->
|
9
14
|
{% assign data = site.data.playwright-reports.branches[page.branch][run_id] %}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Jekyll
|
2
|
+
class BranchIndex < Page
|
3
|
+
def initialize(site, base, dir, branch)
|
4
|
+
@site = site
|
5
|
+
@base = base
|
6
|
+
@dir = dir
|
7
|
+
@name = 'index.html'
|
8
|
+
|
9
|
+
self.process(@name)
|
10
|
+
self.read_yaml(File.join(base, '_layouts'), 'playwright-branch.html')
|
11
|
+
self.data['branch'] = branch
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
class BranchIndexGenerator < Generator
|
16
|
+
safe true
|
17
|
+
|
18
|
+
def generate(site)
|
19
|
+
if site.layouts.key? 'playwright-branch'
|
20
|
+
dir = "/playwright-reports/branches"
|
21
|
+
site.data["playwright-reports"]["branches"].each_key do |branch|
|
22
|
+
Jekyll.logger.info "Branch Index: Generating index for #{branch}"
|
23
|
+
site.pages << BranchIndex.new(site, site.source, File.join(dir, branch), branch)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/coverage.markdown
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
# the header for the page
|
4
|
+
title: "Code Coverage Report"
|
5
|
+
# the link to page https://jekyllrb.com/docs/permalinks/
|
6
|
+
permalink: coverage-report/
|
7
|
+
---
|
8
|
+
|
9
|
+
<div>
|
10
|
+
<!-- Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`. -->
|
11
|
+
{% assign total = site.data.coverage.coverage-summary.total %}
|
12
|
+
<!-- Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`. -->
|
13
|
+
{% include coverage-summary.html branch="main" total=total %}
|
14
|
+
</div>
|
data/index.markdown
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="md:grid md:grid-cols-3 md:gap-8 md:items-start md:justify-center">
|
6
|
+
<div class="md:col-start-1 md:col-span-2">
|
7
|
+
<div class="">
|
8
|
+
<h2 class="md:mt-0">Main</h2>
|
9
|
+
|
10
|
+
<h3>Code Coverage</h3>
|
11
|
+
<!--
|
12
|
+
Jekyll provides access to YAML, JSON, CSV, and TSV in the `_data` directory using `site.data`. It supports retrieving data nested in directories, files, and objects. https://jekyllrb.com/docs/datafiles/
|
13
|
+
|
14
|
+
Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`.
|
15
|
+
-->
|
16
|
+
{% assign total = site.data.coverage.coverage-summary.total %}
|
17
|
+
<!--
|
18
|
+
Jekyll uses includes to create reusable snippets of html code. Data can be passed through to the snippet using parameters. https://jekyllrb.com/docs/includes/
|
19
|
+
|
20
|
+
Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`.
|
21
|
+
-->
|
22
|
+
{% include coverage-summary.html branch="main" total=total %}
|
23
|
+
|
24
|
+
<!-- Playwright dashboard added earlier -->
|
25
|
+
<h3>Playwright</h3>
|
26
|
+
<!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
|
27
|
+
{% assign data = site.data.playwright-reports.main %}
|
28
|
+
<!-- Jekyll uses Liquid filters to provide helper functions. https://jekyllrb.com/docs/liquid/filters/ -->
|
29
|
+
<!--
|
30
|
+
Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
|
31
|
+
the data variable as `data`, and "/playwright-reports/main.html" as `url`.
|
32
|
+
-->
|
33
|
+
{% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="">
|
37
|
+
<h2>Latest Reports from Branches</h2>
|
38
|
+
<!-- Include the html snippet from `_includes/playwright-branch-list.html` -->
|
39
|
+
{% include playwright-branch-list.html %}
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="md:mt-[-2rem] md:col-start-3">
|
44
|
+
{% for post in site.categories["release"] limit: 3 %}
|
45
|
+
{% include release-note.html post=post content=post.content %}
|
46
|
+
{% endfor %}
|
47
|
+
</div>
|
48
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
# the header for the page
|
4
|
+
title: "Playwright Reports for Branches"
|
5
|
+
# the link to page https://jekyllrb.com/docs/permalinks/
|
6
|
+
permalink: playwright-reports/branches/
|
7
|
+
---
|
8
|
+
|
9
|
+
<div>
|
10
|
+
<!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
|
11
|
+
{% include playwright-branch-list.html %}
|
12
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
# the header for the page
|
4
|
+
title: "Playwright Reports"
|
5
|
+
# the link to page https://jekyllrb.com/docs/permalinks/
|
6
|
+
permalink: playwright-reports/
|
7
|
+
---
|
8
|
+
|
9
|
+
<div>
|
10
|
+
<h2>Main
|
11
|
+
</h2>
|
12
|
+
<!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
|
13
|
+
{% assign data = site.data.playwright-reports.main %}
|
14
|
+
<!--
|
15
|
+
Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
|
16
|
+
the data variable as `data`, and "/playwright-reports/main.html" as `url`.
|
17
|
+
-->
|
18
|
+
{% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
|
19
|
+
|
20
|
+
<div class="mt-8">
|
21
|
+
<h2>Latest Reports from Branches
|
22
|
+
</h2>
|
23
|
+
<!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
|
24
|
+
{% include playwright-branch-list.html %}
|
25
|
+
</div>
|
26
|
+
</div>
|
data/releases.markdown
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-report-dashboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiffany Forkner
|
@@ -57,6 +57,7 @@ executables: []
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
+
- 404.html
|
60
61
|
- _includes/coverage-summary.html
|
61
62
|
- _includes/footer.html
|
62
63
|
- _includes/head.html
|
@@ -70,7 +71,13 @@ files:
|
|
70
71
|
- _layouts/playwright-branch.html
|
71
72
|
- _layouts/post.html
|
72
73
|
- _layouts/release-note.html
|
74
|
+
- _plugins/playwright-branch-index-generator.rb
|
73
75
|
- assets/css/styles.css
|
76
|
+
- coverage.markdown
|
77
|
+
- index.markdown
|
78
|
+
- playwright-branches.markdown
|
79
|
+
- playwright-reports.markdown
|
80
|
+
- releases.markdown
|
74
81
|
homepage: https://github.com/FearlessSolutions/jekyll-report-dashboard
|
75
82
|
licenses:
|
76
83
|
- MIT
|