RequestPolicy / requestpolicy

RequestPolicy is a Firefox extension that gives you control over cross-site requests. --- Be sure to look at the dev-1.0 branch as that's where all of the interesting work is happening. See also: https://www.requestpolicy.com/1.0.html
https://www.requestpolicy.com/
107 stars 17 forks source link

write unit tests #51

Open jsamuel opened 12 years ago

jsamuel commented 12 years ago
imported trac ticket
created: 2009-10-26 08:33:17
reporter: justin

I need to write unit tests. The first pass at them can be simple and incomplete, but some form of unit testing needs to be started. Suggestions for how to best do this are welcome. Odds are I may start with testing functionality that is mostly plain javascript (not browser-related) using command line js shells. I need to investigate options such as jsunit and down the road things like Selenium.

jsamuel commented 12 years ago
imported trac comment
created: 2010-02-03 20:30:14
author: justin

Barring also finding a way to use smjs from the command line to test the semi-standalone modules, it looks like this may be a good way to go:

https://developer.mozilla.org/en/Mozmill_Tests https://addons.mozilla.org/en-US/firefox/addon/9018

jsamuel commented 12 years ago
imported trac comment
created: 2011-02-16 10:35:28
author: eibwen

Any progress on this? This has been open for over a year, but would allow automated verification that new patches don't break existing functionality, and with unit tests for the new features, could confirm that the patches work as expected.

Useful for trunk, useful for personal branches...

See ticket:190#comment:1 for a sample end-user use case.