Skip to content

Latest commit

 

History

History
80 lines (71 loc) · 5.63 KB

Tests.md

File metadata and controls

80 lines (71 loc) · 5.63 KB

Testing

To keep an eye on the accuracy of the filter, we keep two sets of tests, one positive and one negative.

The positive tests are pages that should have user comments blocked. Failure to block them is considered a defect of the filter. The negative test is a list of pages with desirable user comments that should remain untouched.

Tests

###PositiveTests These pages have comments that should be blocked. This list should include pages from popular, representative web sites. (Most of these are just randomly chosen pages that are representative of a block rule, no one/thing is being singled out.)

###Negative Tests These pages have comments that should not be blocked.

Performing Tests

To perform the tests:

  1. Add the mute filter to AdBlock.
  2. Optionally, disable any other AdBlock filters. (A good idea to do from time to time.)
  3. Visit each page with blockable comments and confirm there are no visible user comments. To be thorough, compare the page with and without AdBlock enabled.
  4. Visit each page without blockable comments and verify that the comments are still visible; also check the hit count in AdBlock for that filter to ensure there are no hits for the page.