Krzysztof Pawlik
b9fd59df02
Release v1.22.1
2019-11-05 14:53:04 -08:00
Jim Brännlund
9dd249f200
Fix assets file naming to work across both *nix and windows ( #223 )
...
* Fix assets file naming to work across both *nix and windows
Fixes #214
Fixes #213
* Better replacement strategy for test id
* Update markers
2019-08-06 13:57:05 +02:00
Jim Brännlund
8e96c6ed94
Migrate to 'black' for consistent styling and formatting ( #218 )
...
* Migrate to 'black' for consistent styling and formatting
* Add black to tox and travis
2019-08-04 14:09:46 +02:00
Sam Clements
b3cf28a84b
Append a line break after captured log sections
...
The content in log sections doesn't always include a trailing newline, so this includes one afterwards ensuring that the next section header is placed on a new line. If there's already a trailing newline, this has no effect as it uses `<br>`.
2019-07-09 14:14:39 +01:00
Michał Bielawski
623efc6198
Truncate long test names in assets.
2019-06-19 15:40:12 +01:00
Sorin Sbarnea
6ff7b9616a
Allow opening generated html report in browser ( #208 )
...
By default terminals would open files in editors and URLs in browsers.
By printing the generated html report using an URL (file://) we enable
users to click the terminal to open it. Previously this opened the file
in the text editor which is very unlikely to be what user would want.
2019-06-17 13:04:03 -03:00
Jim Brännlund
582c29fb5a
Handle when report title is stored as an environment variable
...
When the --html flag is used in pytest.ini with "addopts" and the
report title is stored in an environment variable, the name of the
environment variable was used as the report title.
In other words, the environment variable was never expanded.
Fixes : #201
2019-04-26 11:08:20 +02:00
Iulia Liakh
27b6e77ab1
Change assets naming method ( #199 )
...
* added assets name hashing option
* from command line option to config option
* new naming strategy
* fix
* Flake8 issues fixed
* more Flake8 issues fixed
2019-02-19 06:34:01 -03:00
chardbury
75cfd52da1
Removed extraneous space from anchor tag ( #192 )
2019-01-12 10:05:19 -03:00
Ankit Goel
cf21aed363
Stop filtering out falsy environment values
...
Fixes #175
2018-10-04 17:07:12 +01:00
Ankit Goel
21b80148b3
Refactor css config code
...
Change the default value for `--css` option to an empty array instead of
None since the config reading code is doing that manually.
2018-10-04 16:30:41 +01:00
Jace Browning
fb6a456415
Disable sort on environment table when metadata is ordered
2018-05-22 11:31:53 +01:00
Dave Hunt
51c77d5c3f
Finish up the custom CSS support including docs and tests
2018-04-05 13:29:13 +01:00
David Fernandez
f8fcd88c08
Added option to append one or more user-provided style sheets to report's styling.
2018-04-05 13:13:32 +01:00
Dave Hunt
ebebda43dd
Report collection errors in HTML report. ( #154 )
...
Fixes #148
2018-04-05 11:31:56 +01:00
Joep Schuurkes
d5031769b6
Add hook for modifying summary section ( #152 )
...
Closes #109
2018-04-05 11:31:20 +01:00
Joep Schuurkes
abf8f15e4e
adds filename of report as title to html body
2018-03-26 16:22:57 +01:00
Jeffry Pincus
c61dc5bbe0
Fix for including a screenshot bug on Windows ( #136 )
...
Fixes #124
2018-01-04 12:48:33 +00:00
Rasmus Pedersen
950b889108
Improve rendering of collections in metadata ( #132 )
...
Render metadata collection values as comma seperated strings.
2017-09-19 04:04:34 -04:00
Dave Hunt
0c442e43ae
Minor style improvements
2017-08-15 09:16:32 +01:00
Chingiz_Toimbetov
e9b2433549
Decode all bytes strings in extra text.
2017-08-15 09:06:09 +01:00
Tomasz Gajewski
a0cade6e0c
Fixed handling unicode longrepr values. Fixes #114 .
2017-06-09 15:47:25 +01:00
Jim Brännlund
f19a86d1e3
Add ability to specify images as file or URL
...
Fixes #77
2017-06-06 14:31:19 +01:00
Dave Hunt
4c81503c69
Always encode content for data URI
...
Fixes #106
2017-03-08 16:23:38 +00:00
Dave Hunt
9547951d44
Present metadata without additional formatting to avoid issues due to unpredictable content typypes
2017-02-28 08:43:05 +00:00
Dave Hunt
bc2e8a3555
Add hooks for modifying the test results table
2017-02-27 15:06:26 +00:00
Dave Hunt
a1413ed734
Restore environment heading, fix tests, and document pytest-metadata changes
2017-02-27 13:04:36 +00:00
Dave Hunt
b5b3e26906
Replace environment section with values from pytest-metadata
2017-02-24 17:56:32 +00:00
Dave Hunt
2817ac5077
Encode all non-binary assets as utf-8. Fixes #98
2017-02-24 12:54:40 +00:00
Dave Hunt
67e8f28bbd
Escape log sections in HTML report. Fixes #100
2017-02-24 11:29:23 +00:00
Dave Hunt
f84482bc6a
Disable ANSI codes support by default
...
Due to ansi2html having a less permissive license, remove it as a dependency.
2016-12-19 15:41:57 +00:00
Nicolas
98e9abb4cf
Add support for JPG and SVG ( #87 )
...
Fixes #89
2016-11-30 09:23:34 +00:00
Denis Afonso
733d42c9f0
Added version number and PyPI URL to report header ( #88 )
...
Fixes #86
2016-11-30 09:14:09 +00:00
Prem Karat
24e169d9a4
Add ANSI support to report
...
ANSI codes used for color logging is not retained in html report
This patch adds that support. Fixes/implements issue#74.
Signed-off-by: Prem Karat <pkarat@mvista.com>
2016-11-08 11:40:42 +00:00
Ana Ribeiro
972058bb60
Add JavaScript tests ( #73 )
...
Fixes #49
2016-10-06 15:14:09 +01:00
Dave Hunt
e71663f32b
Fix encoding of base64 image in python 3
2016-09-23 14:01:41 +01:00
Dave Hunt
19b909b1fc
Fix an issue in pytest 3.0 that was preventing xpasses from being reported correctly
2016-09-23 13:39:35 +01:00
Dave Hunt
b52135d4d0
Remove screenshot links when creating a self contained report
...
The links are not needed, and they either cause duplication of large data URIs or a need for JavaScript
2016-09-23 12:38:51 +01:00
Dave Hunt
34b49db851
Write images as bytes
2016-09-23 11:40:53 +01:00
Ana Ribeiro
a85e5746e7
Create external assets for text and JSON ( #72 )
...
Fixes #32
2016-08-09 14:51:13 -07:00
Ana Ribeiro
4435b9ecbf
Don't show filter checkboxes when JavaScript is disabled ( #70 )
...
Fixes #66 .
2016-07-28 10:16:07 +01:00
Ana Ribeiro
533b200d0d
Removed rerun outcome unless the plugin is installed ( #71 )
...
Fixes #67 .
2016-07-27 18:24:10 +01:00
Ana Ribeiro
e49f951f22
Store images in an assets subdirectory by default ( #68 )
...
Images will be inline as data URI if --standalone-html is specified. Fixes #65 .
2016-07-27 11:17:39 +01:00
Ana Ribeiro
32fc236b5b
Create a separate CSS file by default ( #63 )
...
CSS can still be generated inline with --self-contained-html command line option.
2016-07-20 11:17:29 +01:00
Ana Ribeiro
a1956abb4d
Set initial sort order in the HTML ( #61 )
...
Avoid the need to run an initial sort using JavaScript.
2016-07-19 19:11:28 +01:00
Karan Desai
aadfd713a4
Split pytest_sessionfinish into generate and save methods. ( #57 )
2016-07-04 12:28:40 +01:00
Ana Ribeiro
aae36ba932
Added support to automatic reruns ( #52 )
...
Fixes #37
2016-06-22 11:50:14 +02:00
Ana Ribeiro
fb4d5947fa
Filter the tests results by outcome ( #46 )
...
Fixes issue #38
2016-06-20 14:01:35 +01:00
Dave Hunt
77fef3cc37
Include captured output for passing tests
2016-05-24 09:23:33 +01:00
Dave Hunt
fcc9176c70
Removed duplication from the environment section
2016-01-28 09:23:28 +00:00