pytest HTML report

Who doesn't want an HTML report of test execution when it's so easy peasy.

My test module looks like this:












Now when I run the test using pytest I want an HTML output, for that I need "pytest-html"
So I install it with:
cmd > pip install pytest-html

Now run the test as below
cmd > py.test -v  -s --html=reportName.html
That's it, like I said easy peasy

The report would look like this:

Comments

  1. Thanks John for the feedback. Comments like this keeps me going. Checkout the latest posts on visual testing

    ReplyDelete
  2. I guess Unknown user said sarcastically

    ReplyDelete
  3. Great Post with valuable information. I am glad that I have visited this site. Share more updates.
    Pytest Online Training
    Pytest Online Course
    Artificial Intelligence Online Course


    ReplyDelete
  4. Valuable blog,Informative content...thanks for sharing, Waiting for the next update…
    Benefits of learning japanese
    Scope of japanese language

    ReplyDelete
  5. Nice blog, very informative content.Thanks for sharing, waiting for the next update…
    Data Science Uses
    What are the uses of DataScience?

    ReplyDelete
  6. Greetings! Very useful advice in this particular post! It’s the little changes that make the greatest changes. Thanks a lot for sharing!
    Notary Public Lawyer in Kitchener

    ReplyDelete
  7. Wonderful post. your post is very well written and unique. Thank you for sharing this post here. Body building Product Review

    ReplyDelete

Post a Comment

Popular Posts