Navel Piercing Madness

    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1-beta.43 • Public • Published

    Teamscale JavaScript Profiler: Coverage Collector

    The JavaScript Coverage Collector is part of a tool suite for obtaining coverage information from JavaScript applications that are under test. This tool suite is used in context of the Teamscale Software Intelligence Platform. The collected coverage information can be dumped to coverage files in the Teamscale Simple Coverage Format.

    The Teamscale JavaScript Profiler consists of this Coverage Collector and the JavaScript Instrumenter. More details on using them (in combination) can be found in the Teamscale Documentation.

    The JavaScript Coverage Collector starts a server process that listens for code coverage information from manually or automatically exercised (tested) JavaScript applications. The server also handles source maps to map coverage information back to the original source code.


    The Collector is written in TypeScript/JavaScript. For building and running it, NodeJs (>= v14) and Yarn are needed as prerequisites.

    yarn clean
    yarn install
    yarn build

    Running the Collector

    There are several options to run the Collector. For example, via yarn by running

    yarn collector --port 54678 --dump-to-file=./coverage.simple

    or via npx by running

    npx @teamscale/coverage-collector --port 54678 --dump-to-file=./coverage.simple

    Note that NodeJs applications (as the Collector) can only access a limited amount of RAM by default. Ensure to increase the 'max old space' as needed, for example, by setting a corresponding environment variable.

    export NODE_OPTIONS="$NODE_OPTIONS --max-old-space-size=8192"




    npm i @teamscale/coverage-collector

    DownloadsWeekly Downloads






    Unpacked Size

    59.7 kB

    Total Files


    Last publish


    • cqse-buildcrew