Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.7.0
Description
pytest provides a way to specify an individual test function to be run by using the :: operator to resolve scope.
$ impala-py.test path/to/test_module.py::TestClass::test_function
This works fine for non-parameterized tests (or, in Impala's nomenclature, non-vectorized tests), but breaks when the test is marked with pytest's parametrize [sic] decorator, or when using the Impala-defined vector fixture. In those cases, the test function is not found.
The root cause is this issue: https://github.com/pytest-dev/pytest/issues/649
It was fixed just prior to the release of pytest 2.9.1, but Impala is still shipping with 2.7.2.
We should upgrade our version of pytest.