Upgrading pytest-cov 1 to 2
Breaking1.8.1 → 2.12.1Breaking2Platform1New21Changed21Fixed36Other4
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- Removed the empty console_scripts entrypoint that confused some Gentoo build script.
- Removed legacy pytest support.
- Dropped support for Python 3 < 3.4, Pytest < 3.5 and Coverage < 4.4.
Must act 3 items need code or config changes
Requires Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* from 2.9.0 (none stated before).
Adds coverage >=5.2.1, pytest >=4.6, toml.
Installs 7 packages in all (was 0).
What you must change
Breaking2
Removed the empty console_scripts entrypoint that confused some Gentoo build script.
console_scriptsRemoved legacy pytest support.
setup.pypytest>=4.6Platform1
Dropped support for Python 3 < 3.4, Pytest < 3.5 and Coverage < 4.4.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
class CovPlugin(object) - removed:
constructor CovPlugin(options, pluginmanager, start=…) - removed:
function pytest_addoption(parser) - removed:
function pytest_configure(config) - removed:
function pytest_funcarg__cov(request) - removed:
function pytest_load_initial_conftests(early_config, parser, args) - removed:
method CovPlugin.pytest_configure_node(node) - removed:
method CovPlugin.pytest_runtest_setup(item) - removed:
method CovPlugin.pytest_runtest_teardown(item) - removed:
method CovPlugin.pytest_sessionfinish(session, exitstatus) - removed:
method CovPlugin.pytest_sessionstart(session) - removed:
method CovPlugin.pytest_terminal_summary(terminalreporter) - removed:
method CovPlugin.pytest_testnodedown(node, error) - removed:
method CovPlugin.start(controller_cls, config=…, nodeid=…)
- added:
class SessionWrapper(object) - added:
constructor SessionWrapper(session) - added:
property SessionWrapper.testsfailed - added:
variable hookwrapper
- added:
function cleanup() - added:
function cleanup_on_signal(signum) - added:
function cleanup_on_sigterm() - added:
function init() - added:
function multiprocessing_start(_) - added:
variable multiprocessing_finish
- added:
class Central(CovController) - added:
class CovController(object) - added:
class DistMaster(CovController) - added:
class DistWorker(CovController) - added:
constructor CovController(cov_source, cov_report, cov_config, cov_append, cov_branch, config=…, nodeid=…) - added:
method Central.finish() - added:
method Central.start() - added:
method CovController.ensure_topdir() - added:
method CovController.pause() - added:
method CovController.resume() - added:
method CovController.set_env() - added:
method CovController.summary(stream) - added:
method DistMaster.configure_node(node) - added:
method DistMaster.finish() - added:
method DistMaster.start() - added:
method DistMaster.testnodedown(node, error) - added:
method DistWorker.finish() - added:
method DistWorker.start() - added:
method DistWorker.summary(stream) - added:
static method CovController.get_node_desc(platform, version_info) - added:
static method CovController.sep(stream, s, txt) - added:
static method CovController.unset_env()
- added:
class CovPlugin(object) - added:
class CoverageError(Exception) - added:
class StoreReport(argparse.Action) - added:
class TestContextPlugin(object) - added:
constructor CovPlugin(options, pluginmanager, start=…, no_cov_should_warn=…) - added:
constructor TestContextPlugin(cov) - added:
function cov(request) - added:
function no_cover() - added:
function pytest_addoption(parser) - added:
function pytest_configure(config) - added:
function pytest_load_initial_conftests(early_config, parser, args) - added:
function validate_context(arg) - added:
function validate_fail_under(num_str) - added:
function validate_report(arg) - added:
method CovPlugin.pytest_configure_node(node) - added:
method CovPlugin.pytest_runtest_call(item) - added:
method CovPlugin.pytest_runtest_setup(item) - added:
method CovPlugin.pytest_runtest_teardown(item) - added:
method CovPlugin.pytest_runtestloop(session) - added:
method CovPlugin.pytest_sessionstart(session) - added:
method CovPlugin.pytest_terminal_summary(terminalreporter) - added:
method CovPlugin.pytest_testnodedown(node, error) - added:
method CovPlugin.start(controller_cls, config=…, nodeid=…) - added:
method TestContextPlugin.pytest_runtest_call(item) - added:
method TestContextPlugin.pytest_runtest_setup(item) - added:
method TestContextPlugin.pytest_runtest_teardown(item) - added:
method TestContextPlugin.switch_context(item, when)
- removed:
function test_central(testdir) - removed:
function test_central_subprocess(testdir) - removed:
function test_clear_environ(testdir) - removed:
function test_cover_conftest(testdir) - removed:
function test_cover_conftest_dist(testdir) - removed:
function test_coveragerc(testdir) - removed:
function test_coveragerc_dist(testdir) - removed:
function test_dist_boxed(testdir) - removed:
function test_dist_collocated(testdir) - removed:
function test_dist_missing_data(testdir) - removed:
function test_dist_not_collocated(testdir) - removed:
function test_dist_subprocess_collocated(testdir) - removed:
function test_dist_subprocess_not_collocated(testdir, tmpdir) - removed:
function test_empty_report(testdir) - removed:
function test_funcarg(testdir) - removed:
function test_funcarg_not_active(testdir) - removed:
function test_multiprocessing_subprocess(testdir) - removed:
function test_no_cov_on_fail(testdir) - removed:
function test_not_started_plugin_does_not_fail(testdir) - removed:
variable BASIC_TEST - removed:
variable CHILD_SCRIPT_RESULT - removed:
variable CLEAR_ENVIRON_TEST - removed:
variable CONFTEST - removed:
variable CONF_RESULT - removed:
variable COVERAGERC - removed:
variable EXCLUDED_RESULT - removed:
variable EXCLUDED_TEST - removed:
variable MODULE - removed:
variable MULTIPROCESSING_SCRIPT - removed:
variable PARENT_SCRIPT_RESULT - removed:
variable SCRIPT - removed:
variable SCRIPT_CHILD - removed:
variable SCRIPT_FAIL - removed:
variable SCRIPT_FUNCARG - removed:
variable SCRIPT_FUNCARG_NOT_ACTIVE - removed:
variable SCRIPT_PARENT - removed:
variable SCRIPT_RESULT - removed:
variable SCRIPT_SIMPLE - removed:
variable SCRIPT_SIMPLE_RESULT - removed:
variable pytest_plugins