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-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

  1. Access the Docker container:

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