-
Notifications
You must be signed in to change notification settings - Fork 244
Show extras with screenshot for passed tests as well #11
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you using the latest version (1.3.1)? I fixed this in davehunt@0940097 so any extra content is shown, regardless of the result. |
Hi Dave, I'm working on: Regards, On Thu, Jul 16, 2015 at 4:31 PM, Dave Hunt [email protected] wrote:
|
I also updated all of the tests for the plugin that send extras to the report to pass, and they appear to be okay. Can you try running from the master branch instead of PyPI to see if that fixes it for you? Also, perhaps try fully uninstalling the plugin or creating a fresh virtual environment. I've had issues before when two versions of the same package have been installed, and pip freeze shows the latest one but not the one being used. |
Hi, It seems like plugin does save a screenshot for the passed tests, but Here is a test report https://www.dropbox.com/s/113sq9n4pndtevq/report.html class TestExtra:
def test_1(self, app):
app.page.get_url('http://google.com')
assert True
def test_2(self, app):
app.page.get_url('http://google.com')
assert False So first one always passes, the second one always fails. But only second one is displayed. Can you please maybe share your example of pytest_runtest_makereport ? Thanks a lot, On Mon, Jul 20, 2015 at 1:25 PM, Dave Hunt [email protected] wrote:
|
I've removed the HTML from your comment as it made it impossible to read. This does look like a genuine bug in the CSS. See https://github.com/davehunt/pytest-html/blob/master/pytest_html/resources/style.css#L110 could you perhaps try removing that line and see how it looks? |
Sorry for HTML, I've replied from google without checking how it looks like on git.
But the result is the same - https://www.dropbox.com/s/vix2fio7gllhf89/report_L110.html I'm not familiar with js,
If I understand it properly, |
Well,
And replacing
By
|
Okay, I'll take this and see if I can get it fixed today. Thanks for the details. |
… or there's additional HTML Fixes #11
@shat00n could you try installing from the issue11 branch and let me know if this solves it for you? |
Hi, Thanks! |
Great, thanks! I'll merge this and make a release. |
Released as: https://pypi.python.org/pypi/pytest-html/1.3.2 |
ahh --- this thread is helpful for issue #26 |
Hi, Dave!
Is it possible to show a screenshots for the passed tests as well?
This is my code:
Both passed and failed tests has an URL field,
however, only failed tests are displayed with screenshot.
BR and thanks for the great plugin :)
Michael
The text was updated successfully, but these errors were encountered: