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,170 points
1,858 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,160 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
1,222 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,440 points
126 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,440 points
167 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 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,033 views
0 votes
0 answers
+4 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,810 points
1,556 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,160 points
2,113 views
0 votes
3 answers

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

Hi @ Prajwala  All the members here, I ...READ MORE

answered Sep 14, 2020 in Python by Richa sharma
4,884 views