Coder Social home page Coder Social logo

cqse / teamscale-javascript-profiler Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 0.0 154.19 MB

Teamscale JavaScript Profiler

License: Apache License 2.0

TypeScript 38.26% JavaScript 58.71% HTML 0.55% CSS 1.24% Vue 0.31% Dockerfile 0.22% Shell 0.70%
coverage e2e-tests javascript manual-testing quality-assurance testing

teamscale-javascript-profiler's People

Contributors

alescher avatar andipunz avatar anonymfx avatar dreierf avatar escher-cqse avatar jveihelmann avatar karottenreibe avatar renovate[bot] avatar rixtho avatar snowbagoly avatar stahlbauer avatar stef2k16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

teamscale-javascript-profiler's Issues

Ensure that collector url is in expected format

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.

[Need help] Instrumented code only sends one message, no coverage being dumped

Hello!

I am trying to use the tool on an app (web app) to collect coverage during automated UI test runs.

Well, so far:

  • I've run instrumenter successfully
  • I can run my app
  • I started collector
  • Once app launches I can see logs:
Starting coverage forwarding worker.
Received coverage mapping information for "dd26609bf0e13e1e77ee3dd93d50ea17774a92b5".
Connection to Coverage Collector established.
  • If I go to network tab, find the websocket connection and go to messages - I can see one message sent. source map details, seems like.

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.