- Notifications
You must be signed in to change notification settings - Fork20
display regrtests_results.json in dashboard/html page#10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
100 changes: 100 additions & 0 deletions_layouts/regrtests_results.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| --- | ||
| layout: default | ||
| --- | ||
| <div class="w-80 m-auto mt-2"> | ||
| <div class="d-md-flex"> | ||
| <div class="d-sm-none"> | ||
| <img class="logo" src="{{site.baseurl}}/assets/img/rust-python-logo.svg" alt="RustPython Logo"> | ||
| </div> | ||
| <div class="pl-md-2"> | ||
| <div class="title">{{ site.title }}</div> | ||
| <div class="section-title">{{ page.title }} </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="w-80 m-auto mt-4"> | ||
| <div class="font-secondary section-title">Filters</div> | ||
| <div class="d-md-flex mt-1 "> | ||
| <div data-filter="all" class="filter active pr-2"> All </div> | ||
| <div data-filter="passed" class="filter pr-2"> Passed </div> | ||
| <div data-filter="skipped" class="filter pr-2"> Skipped </div> | ||
| <div data-filter="" class="filter"> Empty </div> | ||
| </div> | ||
| </div> | ||
| <!-- content --> | ||
| <div class="w-80 m-auto"> | ||
| <div class="m-auto"> | ||
| {% for test in site.data.regrtests_results.suites %} | ||
| <div class="results-suites"> | ||
| {% for result in test %} | ||
| <div class="results-test"> | ||
| {% if result.module %} | ||
| <div class="padding-small"> | ||
| <span class="font-secondary">Module:</span> | ||
| {{result.module }} | ||
| </div> | ||
| {% endif %} | ||
| {% if result.name %} | ||
| <div class="padding-small"> | ||
| <span class="font-secondary">Name: </span> | ||
| {{result.name }} | ||
| </div> | ||
| {% endif %} | ||
| {% if result.class %} | ||
| <div class="padding-small"> | ||
| <span class="font-secondary">Class: </span> | ||
| {{result.class }} | ||
| </div> | ||
| {% endif %} | ||
| <div class="results-case-wrapper"> | ||
| {% for cases in result.cases %} | ||
| <div class="results-case"> | ||
| <div class="tbl results-case-list"> | ||
| <!-- for each case --> | ||
| {% for case in cases %} | ||
| <div data-status="{{case.result}}" class="row results-case-list-details"> | ||
| {% if case.method %} | ||
| <div class="cell results-case-list-item"> | ||
| <span class="text-small text-muted">METHOD:</span> | ||
| {{case.method }} | ||
| </div> | ||
| {% endif %} | ||
| {% if case.result %} | ||
| <div class="cell {{case.result }} results-case-list-item text-mobile-right"> | ||
| <span class="text-small text-muted d-mobile-none">RESULT:</span> | ||
| {{case.result }} | ||
| </div> | ||
| {% endif %} | ||
| {% if case.execution_time %} | ||
| <div class="cell results-case-list-item text-md-right d-mobile-none"> | ||
| <span class="text-small text-muted">EXEC TIME:</span> | ||
| {{case.execution_time }} | ||
| </div> | ||
| {% endif %} | ||
| </div> | ||
| {% endfor %} | ||
| <!-- end for each case --> | ||
| </div> | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| <script src="/assets/js/regrtests_results.js"></script> |
25 changes: 25 additions & 0 deletionsassets/js/regrtests_results.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| (function () { | ||
| var filter = function () { | ||
| // simply blast through the list and update the display | ||
| criteria = this.dataset.filter; | ||
| document.querySelector(".active").classList.remove("active"); | ||
| this.classList.add("active"); | ||
| el = document.querySelectorAll('div[data-status]'); | ||
| for (var i = 0; i < el.length; i++) { | ||
| if (el[i].dataset.status == criteria || criteria == "all") { | ||
| el[i].style.display = "flex" | ||
| } else { | ||
| el[i].style.display = "none" | ||
| } | ||
| } | ||
| }; | ||
| // attach a click event to each filter and call the filter function | ||
| var elements = document.getElementsByClassName("filter"); | ||
| for (var i = 0; i < elements.length; i++) { | ||
| elements[i].addEventListener('click', filter, false); | ||
| } | ||
| })(); |
16 changes: 16 additions & 0 deletionsassets/media.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.