Open ckunki opened 1 month ago
Importing the pre-existing version
constant(s) would likely yield a more sensible test.
For example, a unit test that verifies the version in version.py
is in sync with the version in pyproject.toml
could simultaneously address two issues:
File exasol/toolbox/metrics.py in method
total_coverage()
callssubprocess.run()
:A sample CI build displays the following error message.
The current ticket proposes to
CalledProcessError
then reportstdout
andstderr
of the subprocessAdditionally
import exasol.text_ai_extension
butpyproject.toml
using thresholdfail_under = 15
I was able to make coverage report terminate successfully by
__init__.py
, e.g. (see below)File
__init__.py
:file
test/unit/unit_smoke_test.py
: