pytest-dev / pytest-dev/pytest-cpp

Issues if a test exits before xml is created

Open
#87 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
146
Forks
26
Avg merge
12h 26m
Merged PRs (30d)
1

Description

If for any reason a google test exits with exit(1) or before the test ends, code will still try to read the xml file, but since it doesn't exists a FileNotFound exception is raised.

https://github.com/pytest-dev/pytest-cpp/blob/master/src/pytest_cpp/google.py#L89
https://github.com/pytest-dev/pytest-cpp/blob/master/src/pytest_cpp/google.py#L106

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/pytest_cpp/google.py at the linked lines around 89 and 106, where the XML result is read after a Google Test process exits. Reproduce an exit before the XML is created and ensure the runner no longer raises FileNotFound when the result file is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.