allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
96 stars 124 forks source link

fix a bug where a test would not be closed if it had no results #153

Open dmoyerwork opened 3 years ago

dmoyerwork commented 3 years ago

Why would a test have no results - in my case if pytest -xvs is specified, and the tests error out before getting to any which report to Testrail. A test run would be opened, and never closed.

This was the easy fix - perhaps a better fix is never opening the test run at all, but this is better than nothing in my opinion.