rhevm-qe-automation / pytest_jira

py.test plugin to integrate with JIRA
GNU General Public License v2.0
29 stars 25 forks source link

Add supporting of xfail_strict ini parameter #90

Closed gdyuldin closed 6 years ago

gdyuldin commented 6 years ago

Py.test's with xfail_strict=true treat XPASS result as an failed. This patch adds same behaviour for jira marked tests.

codecov-io commented 6 years ago

Codecov Report

Merging #90 into master will increase coverage by 0.05%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   97.91%   97.96%   +0.05%     
==========================================
  Files           1        1              
  Lines         192      197       +5     
==========================================
+ Hits          188      193       +5     
  Misses          4        4
Impacted Files Coverage Δ
pytest_jira.py 97.96% <100%> (+0.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3e518d9...4f890cc. Read the comment docs.

gdyuldin commented 6 years ago

Is information about xfail_strict in the README will be enough?

lukas-bednar commented 6 years ago

Could you please update also Usage section, there is example of all options in jira.cfg.

gdyuldin commented 6 years ago

xfail_strict should be on the pytest ini file (first of pytest.ini | tox.ini | setup.cfg), not on jira.cfg.

lukas-bednar commented 6 years ago

Oh, I didn't get this .. then all is OK !

lukas-bednar commented 6 years ago

Thank you!