pytest error unrecognized arguments --html basic html

0 votes

Hi Guys,

I am trying to create one Pytest report in HTML format. But It is showing me the below error.

C:\Users\Nadeem Akhter\pytest>pytest -v --html=basic.html
usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --html=basic.html
  inifile: None
  rootdir: C:\Users\Nadeem Akhter\pytest

How can I solve this error?

Jun 24, 2020 in Python by akhtar
• 38,230 points
6,868 views

1 answer to this question.

0 votes

Hi@akhtar,

You have to install one module named pytest-html. It allows you to create one report in HTML format. You can use the below-given command to install a pytest-html module.

$ pip install pytest-html==2.1.1

I hope this will help you.

answered Jun 24, 2020 by MD
• 95,440 points

Related Questions In Python

+2 votes
2 answers

Error while printing hello world in python.

You must be trying this command in ...READ MORE

answered Mar 31, 2018 in Python by GandalfDwhite
• 1,320 points
5,411 views
0 votes
1 answer

a basic question about “while true”

while True means loop forever. The while ...READ MORE

answered Jun 4, 2018 in Python by aryya
• 7,450 points
5,410 views
0 votes
1 answer

How to read/process command line arguments?

The canonical solution in the standard library ...READ MORE

answered Jun 4, 2018 in Python by aryya
• 7,450 points
592 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,070 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,491 views
0 votes
1 answer

How to create Pytest report in html format?

Hi@akhtar, You can create a Pytest report in ...READ MORE

answered Jun 24, 2020 in Python by MD
• 95,440 points
4,741 views
0 votes
3 answers

i am installing wordcloud using pip but i am unable to do that ....i am getting the following error

word cloud is not supported for python ...READ MORE

answered Apr 15, 2020 in Python by anonymous
31,900 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP