0.1.0-beta.8 • Published 1 month ago

@teamscale/javascript-instrumenter v0.1.0-beta.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

Teamscale JavaScript Profiler: Instrumenter

The JavaScript Coverage-Forwarding Instrumenter 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 and sent to a Teamscale instance.

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

The Instrumenter instruments a given (set of) JavaScript file(s) such that (1) coverage information is produced and (2) forwarded to the Collector.

Building

The Instrumenter is written in TypeScript/JavaScript. For building and running it, NodeJs (>= v16) and pnpm are needed as prerequisites.

pnpm clean
pnpm install
pnpm build

Workflow Integration

There are several options to run the Instrumenter. For example, via pnpm by running

pnpm instrumenter

or via npx by running

npx @teamscale/javascript-instrumenter