pytest-dev / pytest-dev/pytest-html
I am notgetting report in the code but I am getting in command prompt window
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 779
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
@pytest.hookimpl(tryfirst=True)
def pytest_configure(config):
if not os.path.exists('reports'):
os.makedirs('reports')
config.option.htmlpath = 'reports/'+datetime.now().strftime("%d-%m-%Y %H-%M-%S")+".html"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pytest_configure hook shown in the issue and reproduce the difference between the report path and the command-prompt output. Verify that the HTML report is created under reports with the expected timestamped filename; the issue names no file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100