cqse / teamscale-javascript-profiler Goto Github PK
View Code? Open in Web Editor NEWTeamscale JavaScript Profiler
License: Apache License 2.0
Teamscale JavaScript Profiler
License: Apache License 2.0
Hi,
Currently, the coverage-collector dumps the coverage data in "TeamScale Simple Coverage" format. It would be helpful if the coverage data can be dumped in different formats like JSON, lcov etc.
Thanks.
Following the documentation, we ran the instrumenter but passed a url starting with http://
as --collector
option:
npx @teamscale/javascript-instrumenter \
test/casestudies/angular-hero-app/dist/ \
--collector http://foo.bar:1234 \
--in-place \
--include-origin src/app/**/*
This results in NaN
being set as url in the instrumented scripts.
IMHO we should either simply remove http(s)://
prefixes (preferred) or throw an error in case an unexpected url is passed.
I have tried to run the instrumentation step both with npx and after building locally.
Both times the source-map
library complained.
Adding the following code to App.ts
has fixed the issue for me
//@ts-ignore
SourceMapConsumer.initialize({
"lib/mappings.wasm": "https://unpkg.com/[email protected]/lib/mappings.wasm",
})
I am happy to provide more details for this problem
Hello!
I am trying to use the tool on an app (web app) to collect coverage during automated UI test runs.
Well, so far:
Starting coverage forwarding worker.
Received coverage mapping information for "dd26609bf0e13e1e77ee3dd93d50ea17774a92b5".
Connection to Coverage Collector established.
So here I am. As I click through the app, I do not see any other websocket messages sent.
Collector does not log anything upon the initial message receipt. (I can see a path inside, should I run collector from a specific place? I actually tried it.) still, would be nice to have a lot line saying that initial connection ok, code is available, everything is visible etc.
I assume because web app does not send any new ws messages, I get 0 lines coverage dumps on the way.
Happy to provide more info, just not sure what else is relevant.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.