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:
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:
Thanks John for the feedback. Comments like this keeps me going. Checkout the latest posts on visual testing
ReplyDeleteI guess Unknown user said sarcastically
ReplyDeleteGreat Post with valuable information. I am glad that I have visited this site. Share more updates.
ReplyDeletePytest Online Training
Pytest Online Course
Artificial Intelligence Online Course
Valuable blog,Informative content...thanks for sharing, Waiting for the next update…
ReplyDeleteBenefits of learning japanese
Scope of japanese language
Nice blog, very informative content.Thanks for sharing, waiting for the next update…
ReplyDeleteData Science Uses
What are the uses of DataScience?
Greetings! Very useful advice in this particular post! It’s the little changes that make the greatest changes. Thanks a lot for sharing!
ReplyDeleteNotary Public Lawyer in Kitchener
Wonderful post. your post is very well written and unique. Thank you for sharing this post here. Body building Product Review
ReplyDelete