Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2026.0.0 - English


covMerge

Merges coverage results and exports to a file

Syntax

covMerge(binaryFiles, binaryFile)

Arguments

binaryFiles

a set of coverage binary files

binaryFile

a binary file

Description

This command is used to merge coverage results and export them to a single file. It is used for in-depth analysis for a set of functions and runs. This will output only the results for the passed paths.

Example

covStart(isnan)
for i=1:1e5; isnan(i); end
covWrite("binary", "TMPDIR/isnan1")  // write runtime information
covStop();                             // clear instrumentation

covStart(isnan)
for i=1:1e5; isnan(string(i)); end
covWrite("binary", "TMPDIR/isnan2")  // write other runtime information
covStop();

covMerge(["TMPDIR/isnan1" "TMPDIR/isnan2"], "TMPDIR/isnan") // merge them
covWrite("html", "TMPDIR/isnan", "TMPDIR/coverage") // render the information as HTML

See also

  • covStart — Instruments some macros to store runtime information on code coverage and execution time
  • covStop — Removes all instrumentation data
  • covWrite — Exports runtime performance results to HTML and binary files
Report an issue
<< Scilab code instrumentation Scilab code instrumentation covStart >>

Copyright (c) 2022-2025 (Dassault Systèmes S.E.)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 16 09:02:45 CEST 2025