freeipa/ipatests
Christian Heimes 93c158b058 ipa-run-tests: replace chdir with plugin
The ipa-run-tests command used os.chdir() to change into the ipatests/
directory. The approach works for simple cases but breaks some pytest
features. For example it makes it impossible to selects tests by their
fully qualified test name.

Further more, coverage statistics break because path and module names
get messed up by chdir.

A name plugin takes care of adjusting paths relative to ipatests and to
add ipatests as base. It's now possible to run tests with qualified test
names, e.g.

  ipa-run-tests ipatests/test_ipalib/test_base.py::test_ReadOnly::test_lock

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Felipe Volpone <fbarreto@redhat.com>
2018-01-04 19:36:27 +01:00
..
man Build: remove incorrect use of MAINTAINERCLEANFILES 2016-11-16 09:12:07 +01:00
pytest_plugins Support sqlite NSSDB 2017-11-16 12:17:01 +01:00
test_cmdline test_help: test "help" command without cache 2017-12-19 14:03:24 +01:00
test_install Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_integration Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_ipaclient csrgen: Change to pure openssl config format (no script) 2017-04-03 07:46:30 +00:00
test_ipalib Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_ipaplatform Use namespace-aware meta importer for ipaplatform 2017-11-15 14:17:24 +01:00
test_ipapython Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_ipaserver Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_webui Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_xmlrpc test_cert_plugin: check if SAN is added with default profile 2018-01-04 16:28:14 +01:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Improve the robustness FreeIPA's i18n module and its tests 2016-11-28 13:58:33 +01:00
ipa-run-tests ipa-run-tests: replace chdir with plugin 2018-01-04 19:36:27 +01:00
ipa-test-config Move env_config module to ipatests.pytest_plugins.integration.env_config 2017-03-22 13:42:04 +01:00
ipa-test-task logging: do not use ipa_log_manager to create module-level loggers 2017-07-14 15:55:59 +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 Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_util.py Silence pytest.yield_fixture deprecation warning 2017-05-30 12:28:51 +02:00
util.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00