Copyright (c) 2023-2024 Antmicro
Coverview is a tool for generating coverage dashboards.
Assuming you have node/npm, do:
npm install
npm run dev
npm run build
To make this viewer completely standalone, we postprocess the files to embed JS files into it.
To embed just the JS files (after doing a production build):
./embed.py
There is also a flag allowing you to inject data from a directory, with the same structure as a zip file would - see below - for a complete standalone experience!
./embed.py --inject-data <data_dir>
The viewer allows you to load .zip
files which reloads the dashboard and shows the data loaded.
The data is persistent within the session, but you can click a banner on top of the page to reset it.
config.json
- config file which specifies the available info files, example below:
{
"datasets": {
"dataset_name1": {
"line": "line_all.info",
"toggle": "toggle_all.info"
}
},
"commit": "commit_hash".
"title": "title",
...
}
*.info
- info files, should be one per coverage type as described abovesources.txt
- the accompanying sources, in the following format
### FILE: filename_with_path.sv
<file_contents>
### FILE: another_filename_with_path.sv
<file2_contents>
...
logo.svg
- an optional logo file to put on top of the dashboard