Giter VIP home page Giter VIP logo

karma-cordova-launcher's People

Contributors

brad avatar cesarzagonel avatar janus-toendering avatar ryscheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

karma-cordova-launcher's Issues

Confusing documentation

Hello.

I am trying to setup karma in order to unit test my cordova/ionic hybrid app, and I'm getting errors due to plugins not working, specifically, I'm getting undefined errors with cordova-plugin-network-information. Your documentation states that plugins should be written using a namespace (?) syntax, such as

'org.apache.cordova.console'

which I personally find odd since during the time I've worked with hybrid apps and cordova plugins everyone uses the dashes syntax:

'cordova-plugin-console',

If the former syntax is the right one, how are we supposed to find out or get the correct plugin names if everyone uses the latter?

Thanks

platforms setting not applied

To reproduce:
Within my project I had run cordova prepare for 3 platforms, which appeared in my project-root/platforms folder.

Unexpected behavior:
Executing karma attempts to test all 3 platforms, even though my command line outputs Launching browser Cordova with unlimited concurrency using settings: ( platforms: [ 'android' ], ...

Workaround:
If I manually delete the extra 2 folders, karma correctly tests only 1 platform.

Best way to test conditions after startup

How should I go about testing whether my Cordova startup code is working correctly? The events never get fired! Shall I call the handlers manually? Any hint is appreciated.

Regards,

Martin

Getting browser.on is not a function

Using karma 1.1.0 i can't run unit tests with exact configuration as in readme.md

This is the error i get when i run karma start:

10 07 2016 04:07:12.139:INFO [launcher]: Starting browser undefined on Cordova 10 07 2016 04:07:12.140:ERROR [karma]: [TypeError: browser.on is not a function] TypeError: browser.on is not a function at Object.j (D:\lab\app\node_modules\karma\lib\launcher.js:96:17) at Object.setTimeout.bind.j (D:\lab\app\node_modules\qjobs\qjobs.js:143:18) at Timer.listOnTimeout (timers.js:92:15) !!!EXITING!!!

Allow run in addition to emulate

Hi, thanks for this very cool plugin!

One simple thing, though, would make it even more useful: instead of just emulating, also use the "run" mode. The Android emulator is known to be horribly slow, and things like Genymotion allow a much faster interaction, but they work as pseudo-real devices. In addition, in some scenarios you would also prefer a physical device instead of emulated ones.

The change is minimal: in index.js, line 97, instead of using a fixed word "emulate", it would be good to have a parameter from the settings that can be either "emulate" or "run".
Also, as Genymotion or real devices don't use the standard loopback address 10.0.2.2, on line 65, we would need to specify a different address (10.0.3.2 for Genymotion for example). Again, the address could be set in the settings of the plugin. I could clone this project and make the changes myself, but it would be nice if these are done "officially" in your repository.

Cheers.

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.