Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes


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(isempty)
for i=1:1e5; isempty(i); end
covWrite("binary", "TMPDIR/isempty1")  // write runtime information
covStop();                             // clear instrumentation

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

covMerge(["TMPDIR/isempty1" "TMPDIR/isempty2"], "TMPDIR/isempty") // merge them
covWrite("html", "TMPDIR/isempty", "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 information to files
Report an issue
<< Scilab code instrumentation Scilab code instrumentation covStart >>

Copyright (c) 2022-2023 (Dassault Systèmes)
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:
Mon Nov 07 14:59:06 CET 2022