Skip to content

Failures (fatal) in py.test are not showing in the HTML report #148

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

Closed
Formartha opened this issue Feb 12, 2018 · 2 comments · Fixed by #154
Closed

Failures (fatal) in py.test are not showing in the HTML report #148

Formartha opened this issue Feb 12, 2018 · 2 comments · Fixed by #154
Assignees
Labels
bug This issue/PR relates to a bug.

Comments

@Formartha
Copy link

Hi,
I'm using pytest-html and I saw that that there is a critical defect..

We are using the --continue-on-collection-errors parameter to avoid breaking the build where there are any compile errors.

However, when looking into the html log, I see that it can't grab the error and present it.
In the *.xml file that py.test produces, I can see the fail..

Can you please aid?

Step to reproduce

  1. create couple of test_ZZZ.py files with compiling error
  2. run python -m py.test --continue-on-collection-errors parameter --html=results.html --self-contained-html --junitxml results.xml
  3. Compare the .xm results to the html results.
@davehunt davehunt added the bug This issue/PR relates to a bug. label Mar 26, 2018
@davehunt davehunt self-assigned this Mar 26, 2018
davehunt added a commit to davehunt/pytest-html that referenced this issue Mar 26, 2018
davehunt added a commit that referenced this issue Apr 5, 2018
@Formartha
Copy link
Author

Dave - you are the best :)

@davehunt
Copy link
Collaborator

davehunt commented Apr 5, 2018

No problem! I'm hoping to get a new release out today with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants