-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit tests in node-webkit #66
Comments
@mikemilano im messing around with trying to get the nw-launcher to play nice with travis. might be close to getting somewhere but will update later. |
Ok, to move the relative info here, outstanding on my end is e2e testing with protractor. 1 small change to protractor makes it work. I forked it here: https://github.com/mikemilano/protractor If you want, we can fork it to the kalabox account and I'll fix it there. Here's the issue: angular/protractor#1266 .. I was going to give it a day to see if they are interested in supporting node-webkit, or if we have to stay with our own. The last TODO will be to establish a way to build the Right now,
chromedriver is the node-webkit version. I am running e2e testing successfully from the test directory with the forked version of protractor in the node_modules directory.
|
yeah lets fork it into after trolling through Basically a little of this:
A little of that:
With insight from this: nwjs/nw.js#769 and usage of this: |
WAAAAY easier: This seems to do the trick
|
I also forked https://github.com/kalabox/karma-nodewebkit-launcher to use for now pending resolution of nDmitry/karma-nodewebkit-launcher#1 |
OK. build is fixed and works with |
confirmed. If you agree, we should probably just use a fork of protractor and move on. |
Yes! Def fork. We should def PR our fork into the canonical repo as well but until they On Saturday, August 30, 2014, Mike Milano [email protected] wrote:
Cheers, Mike Pirog |
Ok, it's been forked and a PR has been made from the
|
OMFG @mikemilano can we close this issue now? |
🔨 Let's do it! |
Completely unrelated to your repo, but this helped immensely in getting my node-webkit test suite for a different repo to run on travis. You should make this information more well known: node-webkit wiki, wiki here, twitter, blog, website, whatever. I'm sure there's others that would like to use node-webkit on travis but just don't have the time to figure out what needs to be set up. Thanks much! |
Great! I was actually thinking the other night that we might want to just spin out On Fri, Sep 5, 2014 at 4:21 PM, Hardy Jones [email protected]
Cheers, Mike Pirog |
So if i read correctly you guys got
May i ask what you guys use for unit testing? i'm building an AngularJS app and while setting up tests using Karma + Jasmine works great, i'm running into the issue of require('somemodule') not being understood by Jasmine / Karma :( Also, 'node-webkit-angular-testing-seed', WAT? yes please! |
@michahell I use mocha, see https://github.com/o2platform/node-webkit-repl/tree/master/tests/src for examples In OSX it runs ok out of the box. Here is how I got it to run on docker/linux: nwjs/nw.js#1966 (comment) and nwjs/nw.js#1966 (comment) |
Change drush 8 into 8.0.0 branch / tag
nwjs/nw.js#2229
The text was updated successfully, but these errors were encountered: