You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
Hello,
I'm trying to check my tests code coverage using coverage.py, it's easy to do it for the unit tests because they are launched using pytest: pytest --cov=standard_datatamers_lib tests/unit --cov-report=xml:cobertura.xml, but I'm struggling to find a way to do it with the integration tests, because they are launched using dbx: launch --job=standard_datatamers_lib-sample-integration-test-feature --trace.
Do you have a way to do that? If not, are you planning to create something in regard to it?
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
This issue is quite an interesting task tbh because it requires the following:
Generation of the cov-report is done on the driver-side during an integration test run
We need somehow to save the report to dbfs (?) or as an MLflow artifact (??)
We need to export this artifact after the job run
Theoretically, it's possible but requires some fiddling around the launch mechanics. I'll try out and ping you in this thread as soon as I get some results.
Hi guys!
Not sure if @Halpph is still looking for a solution to this, but I was able to create a simple POC code to execute and get the coverage.xml from the integration test run.
Hello,
I'm trying to check my tests code coverage using coverage.py, it's easy to do it for the unit tests because they are launched using pytest:
pytest --cov=standard_datatamers_lib tests/unit --cov-report=xml:cobertura.xml
, but I'm struggling to find a way to do it with the integration tests, because they are launched using dbx:launch --job=standard_datatamers_lib-sample-integration-test-feature --trace
.Do you have a way to do that? If not, are you planning to create something in regard to it?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: