Where to Find the .edn File for Code Coverage in CodeScene On-prem?
When working with code coverage in CodeScene, it's essential to locate the correct .edn file that contains your project’s coverage data. If you're running CodeScene via Docker, this file isn't directly visible from your host system - and here’s how you can find it.
File Location
The .edn file is generated and stored inside the Docker container that runs CodeScene. You can find it at the following path:
/codescene/code-coverage-dataThis directory contains .edn files named in a numeric sequence (e.g., code-coverage-1.edn, code-coverage-2.edn, etc.), representing different versions of uploaded or generated coverage data.
How to Find the Most Recent .edn File
Access the Docker container:
docker exec -it <container-name> /bin/bashReplace
<container-name>with the name or ID of your running CodeScene container.Navigate to the coverage directory:
cd /codescene/code-coverage-dataList and identify the file with the largest number:
ls -1v | grep '\.edn$' | tail -n 1This shows the most recently updated
.ednfile.Exit the container:
exitCopy the file from the container to your host machine (if needed):
docker cp <container-name>:/codescene/code-coverage-data/<filename>.edn .