An exciting thing happened this week, which is that Zack and I figured
out a very clean way to add tests for the main extension code in HTTPS
Everywhere (without having a custom build of Firefox / xpcshell / pain).

If you want to test it out or add some tests, merge this pull request
into your HTTPS Everywhere repo:
https://github.com/EFForg/https-everywhere/pull/338. Instructions for
running tests are here:
https://github.com/EFForg/https-everywhere/blob/feature/tests/https-everywhere-tests/README.md.

The tests are written in Javascript and have the usual js assertion
semantics so they should be pretty easy to add:
https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/test_assert

(You can also write tests for SSL Observatory -
Components.classes["@eff.org/ssl-observatory;1"].getService(Components.interfaces.nsISupports).wrappedJSObject
gives you access to its js object!)

-Yan

On 06/27/2014 12:26 PM, Red wrote:
> Hello everyone,
> Yan and I have just concluded our meeting for this week. I have already
> updated the gist containing my notes to include this week's:
> https://gist.github.com/redwire/b62f03905a826e79947a#week-7
> 
> In summary, the primary focus of this meeting's discussion has been
> centered around testing.  I have been working on a new extension
> (https://github.com/redwire/https-everywhere-testing) to test HTTPS
> Everywhere functionality.
> 
> In the coming week, I will be adapting this extension to the Firefox
> addon SDK, so that we can take advantage of the testing utilities and
> libraries it includes. I will also be working on integrating these tests
> into the HTTPS Everywhere build script and, time providing, writing
> tests for the ruleset update verification I had been implementing
> previously.
> 
> If you have any thoughts or ideas, please don't hesitate to share them!
> 
> Cheers,
> Zack
> 
> 
> 
> _______________________________________________
> HTTPS-Everywhere mailing list
> [email protected]
> https://lists.eff.org/mailman/listinfo/https-everywhere
> 


-- 
Yan Zhu  <[email protected]>, <[email protected]>
Staff Technologist
Electronic Frontier Foundation                  https://www.eff.org
815 Eddy Street, San Francisco, CA  94109       +1 415 436 9333 x134

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
HTTPS-Everywhere mailing list
[email protected]
https://lists.eff.org/mailman/listinfo/https-everywhere

Reply via email to