freeipa/ipatests
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
..
azure Install language packs for tests 2019-10-17 08:29:06 +02:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions ipatests: update packages for rawhide and updates-testing nightlies 2020-02-10 15:22:54 +01:00
pytest_ipa pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
test_cmdline pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_install pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_integration pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaclient Fix Pytest4.x warning about message 2019-06-19 19:20:14 +10:00
test_ipalib pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaplatform Don't configure KEYRING ccache in containers 2019-01-18 11:33:11 +01:00
test_ipapython pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaserver pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipatests_plugins pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
test_webui pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_xmlrpc pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
create_external_ca.py Test external CA with DNS name constraints 2019-08-06 12:39:46 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_util.py Fix Pytest4.1+ warnings about pytest.config 2019-06-19 19:20:14 +10:00
util.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00