Forum Discussion
Code Coverage Report Seems Broken Like Without CSS
I have a pipeline to connect with databricks & run the databricks notebooks under databricks github repo for unit testing using pytest library. So, Pytest command should execute the notebooks to generate the test results & code coverage.
My pipeline was running on a self-hosted agent pool where docker containers are working on the execution. I have installed pre necessary software's & libraries with the docker image and deployed on top of containers.
Below are the exact lines written on YML file,
apt-get update && apt-get install -y junit cobertura
persistCredentials: true
clean: true
##[error]Unable to process command '##vso[codecoverage.publish codecoveragetool=Cobertura;summaryfile=/agent_works/ado_agent_wrk-nYQREz/ado_agent_wrk-nYQuVz/1/s/coverage.xml;reportdirectory=/agent_works/ado_agent_wrk-nYQREz/ado_agent_wrk-nYQREz/1/s/logs;]' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]File '/agent_works/ado_agent_wrk-nYQREz/ado_agent_wrk-nYQREz/1/s/coverage.xml' does not exist or is not accessible.
Is Azure blocking the CSS generated by pytest on source repository ? Is --no-coverage-upload required for self-hosted agent to generate code coverage report ? Why CSS is not getting reflected in coverage report even i can able to view the css through yml scripts ? How to overcome this css broken issue ? admin
- seeker2511Copper Contributor
Narayanan-IND Were you able to resolve this issue? I get the same issue with pytest. It used to work just fine earlier