freeipa/ipatests/test_ipatests_plugins
Stanislav Levin 8c7447fd42 pytest: Warn about unittest/nose/xunit tests
This Pytest plugin is intended to issue warnings on collecting
tests, which employ unittest/nose frameworks or xunit style.
For example, this may look like:
"""
test_a/test_xunit.py:25
  test_a/test_xunit.py:25: PytestDeprecationWarning: xunit style is deprecated

    def test_foo_bar(self):

test_b/test_unittest.py:7
  test_b/test_unittest.py:7: PytestDeprecationWarning: unittest is deprecated
    def test_foo_bar(self):
"""

To treat these warnings as errors it's enough to run Pytest with:
-W error:'xunit style is deprecated':pytest.PytestDeprecationWarning

Related: https://pagure.io/freeipa/issue/7989
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2020-02-12 18:08:32 +02:00
..
__init__.py Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_depr_frameworks.py pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
test_ipa_run_tests.py Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_slicing.py Fix errors found by Pylint-2.4.3 2019-10-21 18:01:32 +11:00