Getting errors running SDK's unit tests

61 views
Skip to first unread message

Panagiota Mitsopoulou

unread,
Apr 29, 2015, 3:56:01 AM4/29/15
to mozilla-la...@googlegroups.com
Hello everybody:-)

I am a new firefox add-on developer and I started with the Getting started tutorials. When I ran cfx testall to ensure that API is working correctly (https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Troubleshooting), I got following  2 errors:

console.error: addon-page:
  fail
:
 
Timed out (after: START)
console
.error: addon-page:
 
Message: Module `sdk/addon-page` is not found at resource://gre/modules/commonjs/sdk/addon-page.js
 
Stack:
   
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:129:18
exports
["test that add-on page with querystring has no chrome"]@resource://test-addon-page-at-jetpack/addon-page/lib/main.js:127:3
@resource://gre/modules/commonjs/sdk/test.js:68:13
start@resource
://gre/modules/commonjs/sdk/deprecated/unit-test.js:542:7
startMany
/runNextTest/<@resource://gre/modules/commonjs/sdk/deprecated/unit-test.js:505:11
Handler.prototype.process@resource://gre/modules/Promise-backend.js:870:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise-backend.js:749:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise-backend.js:691:37



console.error: content-permissions:
 
Message: Error: This file was removed. A copy can be obtained from:
  https
://github.com/mozilla/addon-sdk/blob/master/test/lib/httpd.js
 
Stack:
   
@resource://gre/modules/commonjs/sdk/test/httpd.js:5:1
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:129:18
@resource://content-permissions-at-jetpack/content-permissions/lib/main.js:8:30
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:129:18
run@resource
://gre/modules/commonjs/sdk/addon/runner.js:145:19
startup
/</<@resource://gre/modules/commonjs/sdk/addon/runner.js:86:7
Handler.prototype.process@resource://gre/modules/Promise-backend.js:870:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise-backend.js:749:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise-backend.js:691:37


In second case I took a copy from https://github.com/mozilla/addon-sdk/blob/master/test/lib/httpd.js, but still get the error.

I am on MAC and installed sdk following way:
brew install mozilla-addon-sdk

How can I install latest stable version of SDK?

Thanks,

Panagiota


Erik Vold

unread,
Apr 29, 2015, 1:58:08 PM4/29/15
to mozilla-la...@googlegroups.com
Hey Panagiota,

So the issue here I think is that the last version of cfx we shipped (which was 1.17, the version you are using via brew) probably included too many tests, or we should have had -overload on by default when testing cfx itself.

The reasons why 1.17 was the last version we will ship of cfx is described here https://blog.mozilla.org/addons/2015/02/26/jpm-replaces-cfx-for-firefox-38/

I also mention in the above link that `jpm` is the new command line tool which is what I would recommend you use now if you can support Fx 38 as the min version.

Regards,

Erik



--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages