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-data
This 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/bash
Replace<container-name>
with the name or ID of your running CodeScene container. - Navigate to the coverage directory:
cd /codescene/code-coverage-data
- List and identify the file with the largest number:
ls -1v | grep '\.edn$' | tail -n 1
This shows the most recently updated.edn
file. - Exit the container:
exit
- Copy the file from the container to your host machine (if needed):
docker cp <container-name>:/codescene/code-coverage-data/<filename>.edn .