Open pdehaan opened 9 years ago
WAT
@pdehaan are you on OS X?
Also see the script: https://github.com/vladikoff/fxa-gecko-tests/blob/master/run-tests.sh#L2
if you are on linux then you have to set $RUNTIME
OSX 10.10.3 Yosemite.
Confirmed I have the firefox-bin
runtime.
$ ls /Applications/Firefox.app/Contents/MacOS/firefox-bin
/Applications/Firefox.app/Contents/MacOS/firefox-bin
Do I need to do any other setup or have anything installed in that browser?
Do I need to do any other setup or have anything installed in that browser?
nope, the output you should get is:
➜ fxa-gecko-tests git:(master) ./run-tests.sh
․
0 passing (4s)
1 failing
1) fxa test about_accounts signup sign up:
+ expected - actual
ypeError: Object [RPC Client] <rpc-obj-c24927e7-6a19-427a-8d56-d329513e1936> has no method 'checkError'
Hhmm, if I run firefox-bin
directly, it brings up my Firefox beta (default browser, already running) with the profile chooser. Wonder if it doesn't like that.
@pdehaan what if you shut down Firefox?
@vladikoff No change. Even if I run without the profile chooser at launch.
@gaye what could this be? any ideas?
Weird, if I type the command manually, it seems to launch Firefox and I see the Hello/Loop dialog pop up, but both tests fail:
$ ./node_modules/.bin/marionette-mocha --host marionette-firefox-host --timeout 60s --runtime /Applications/Firefox.app/Contents/MacOS/firefox-bin tests/
․․
0 passing (1m)
2 failing
1) fxa test about_accounts signup sign up:
+ expected - actual
ypeError: Object [RPC Client] <rpc-obj-23499c3b-5e40-434e-bb53-c9884c17c316> has no method 'checkError'
2) loop clicking on hello icon:
+ expected - actual
rror: timeout of 60000ms exceeded. Ensure the done() callback is being called in this test.
(weirder still is that the mocha errors seem to always lose that first character -- "rror:" versus "Error:", and "ypeError:" versus "TypeError:")
Then again, that does seem consistent with your output above.
yeap. thats good :). now we need to get tests
@pdehaan here is an example of a python test for the loop panel: http://mxr.mozilla.org/mozilla-central/source/browser/components/loop/test/functional/test_1_browser_call.py#233
If we cannot make that work in JS then we should just use python
Not sure what exactly the error is telling me, or if I need some additional setup, but I did ye-olde
git clone
,npm install
, andrun-tests.sh
and got the following barf: