CFMTech / pytest-monitor

Pytest plugin for analyzing resource usage during test sessions
MIT License
173 stars 16 forks source link

Fix79: no monitoring caused tests supposed to fail to succeed instead #80

Closed lhpt2 closed 4 months ago

lhpt2 commented 4 months ago

Description

There was a bug that resulted in some tests not failing when the cmd flag --no-monitor is set. Raising a BaseException in the corresponding code that runs when monitoring is disabled (line 210) solves the issue.

Fixes #79

pytest-monitor.py:205 raise e instead of return e

Checklist:

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

lhpt2 commented 4 months ago

Ran into some issues and decided to open a new PR (#81)