Skip to content

Commit

Permalink
Merge pull request #9 from prashanth-sams/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
prashanth-sams committed Jul 24, 2020
2 parents 3acd4fc + 710800b commit 24e89e7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
Binary file modified PHR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# pytest-html-reporter
> Generate a static `pytest` html report
[![Build Status](https://travis-ci.com/prashanth-sams/pytest-html-reporter.svg?branch=master)](https://travis-ci.com/prashanth-sams/pytest-html-reporter)

> Generates a static `pytest` based html report
<div align="center"><img src="./PHR.png" width="200"/></div>

#### Dev setup
#### setup
```shell script
pip3 install -e .
```
23 changes: 22 additions & 1 deletion pytest_html_reporter/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,21 @@ def html_template():
color: darkgray;
}
.total__count {
font-size: 5.3rem;
font-family: sans-serif;
padding-left: 14%;
color: black;
padding-top: 8%;
}
.total_count__label {
font-size: 1.3rem;
font-family: sans-serif;
padding-left: 12%;
color: darkgray;
}
.header__title-icon {
font-size: 1.6rem;
color: #ccc;
Expand Down Expand Up @@ -226,9 +241,15 @@ def html_template():
<div class="card__header">
<span class="header__date">July 24, 2020</span>
</div>
<div style="display: flex;">
<span class="total__count">__total__</span>
</div>
<div style="display: flex;">
<span class="total_count__label">TEST CASES</span>
</div>
</div>
<div>
<div style="width: 600px;height: 350px; margin-left: 22%;margin-top: -15%;">
<div style="width: 600px;height: 350px; margin-left: 22%;margin-top: -50%;">
<canvas class="chart" id="myChart" style="margin-top: 6%; height: 290px;"></canvas>
</div>
<div style="margin-top: -5%;">
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def read(fname):
maintainer_email='sams.prashanth@gmail.com',
license='MIT',
url='https://github.com/prashanth-sams/pytest-html-reporter',
description='Generate a static pytest html report',
description='Generates a static pytest based html report',
long_description=read('README.md'),
keywords=[
'pytest', 'py.test', 'html', 'reporter', 'report'
Expand Down

0 comments on commit 24e89e7

Please sign in to comment.