man-group / man-group/pytest-plugins

With pytest-pyramid-server how to get coverage for requests?

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
597
Forks
89
PR merge metrics
No merged PRs in 30d

Description

I'm using pytest-pyramid-server to test a Pyramid application.

The server starts fine and I get some coverage information however no matter the request I made for example:
```
assert pyramid_server.get('/')
assert pyramid_server.get('/login')
assert pyramid_server.get('/join')

```
I still get the coverage of starting the server but never increases with any request.

Any idea how can I do that?

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 reproducing the issue with pytest-pyramid-server and the pyramid_server.get('/') request examples. Read how the server is started and how coverage is collected, then determine whether requests execute in a separately measured process. Done means request-handling code is included in the resulting coverage report, with a regression test demonstrating that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.