Skip to content

Commit

Permalink
Improving the UI for Specs and Secanrios stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
negiDharmendra committed Oct 10, 2018
1 parent 383dd58 commit 293ef7c
Show file tree
Hide file tree
Showing 35 changed files with 487 additions and 373 deletions.
22 changes: 11 additions & 11 deletions generator/_testdata/dummyReportTheme/views/partials.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@
</svg>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">{{.Summary.Total}}</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">{{.Summary.Failed}}</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">{{.Summary.Passed}}</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">{{.Summary.Skipped}}</span><span class="txt">Skipped</span></div>
<div class="report_test-results">
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">{{.Summary.Total}}</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">{{.Summary.Failed}}</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">{{.Summary.Passed}}</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">{{.Summary.Skipped}}</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">{{.ScenarioSummary.Total}}</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">{{.ScenarioSummary.Failed}}</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">{{.ScenarioSummary.Passed}}</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">{{.ScenarioSummary.Skipped}}</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">{{.ScenarioSummary.Total}}</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">{{.ScenarioSummary.Failed}}</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">{{.ScenarioSummary.Passed}}</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">{{.ScenarioSummary.Skipped}}</span></div>
</div>
</div>
<div class="report_details">
Expand Down
20 changes: 10 additions & 10 deletions generator/_testdata/expectedE2E/before_suite_fail.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">0</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">0</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">0</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">0</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">0</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">0</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">0</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
20 changes: 10 additions & 10 deletions generator/_testdata/expectedE2E/nestedSuiteRes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">2</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">2</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">2</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">0</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">2</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">0</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">3</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">3</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
20 changes: 10 additions & 10 deletions generator/_testdata/expectedE2E/nestedSuiteRes/nested/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">1</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">1</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">1</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">0</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">0</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">1</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">1</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">1</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">1</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">1</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">2</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">2</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">2</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">0</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">2</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">0</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">3</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">3</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">2</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">2</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">2</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">0</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">2</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">0</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">3</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">3</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">3</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">1</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">1</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">1</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">3</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">1</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">1</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">1</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">4</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">4</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
20 changes: 10 additions & 10 deletions generator/_testdata/expectedE2E/simpleSuiteRes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ <h2 class="project">Project: Gauge Project</h2>
</div>
</div>
<div class="report_test-results">
<div class="report_test-result">
<div class="total-specs"><span class="value">3</span><span class="txt">Total specs</span></div>
<div class="fail spec-filter" data-status="failed"><span class="value">1</span><span class="txt">Failed</span></div>
<div class="pass spec-filter" data-status="passed"><span class="value">1</span><span class="txt">Passed</span></div>
<div class="skip spec-filter" data-status="skipped"><span class="value">1</span><span class="txt">Skipped</span></div>
<div class="report_test-result specs">
<div class="total-specs" title="Filter all specs"><span class="txt">Total specs</span><span class="value">3</span></div>
<div class="fail spec-filter" data-status="failed" title="Filter failed specs"><span class="value">1</span></div>
<div class="pass spec-filter" data-status="passed" title="Filter passed specs"><span class="value">1</span></div>
<div class="skip spec-filter" data-status="skipped" title="Filter skipped specs"><span class="value">1</span></div>
</div>
<div class="report_test-result">
<div class="total-specs"><span class="value">4</span><span class="txt">Total scenario</span></div>
<div class="fail scenario-filter" data-status="failed"><span class="value">0</span><span class="txt">Failed</span></div>
<div class="pass scenario-filter" data-status="passed"><span class="value">0</span><span class="txt">Passed</span></div>
<div class="skip scenario-filter" data-status="skipped"><span class="value">0</span><span class="txt">Skipped</span></div>
<div class="report_test-result scenarios">
<div class="total-scenarios"><span class="txt">Total scenario</span><span class="value">4</span></div>
<div class="fail scenario-stats" data-status="failed"><span class="value">0</span></div>
<div class="pass scenario-stats" data-status="passed"><span class="value">0</span></div>
<div class="skip scenario-stats" data-status="skipped"><span class="value">0</span></div>
</div>
</div>
<div class="report_details">
Expand Down
Loading

0 comments on commit 293ef7c

Please sign in to comment.