Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2011 00:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
process of adding validator test
The process of adding a validator test
When a validator has a problem, someone (Jorge probably) files a bug with the error message.
Matt isolates the bug and writes a unit test for it.
A functional test also needs to be written. The functional test runs the addon through the validator and checks that the same error messages does not show up.
Here is a bug:
"Don't show "missing type" warning for dictionary add-ons in validator"
Sometimes there is a link to a specific xpi file/addon. This one doesn't have one but since it's for any dictionary, chose the smallest dictionary file available "chichewa"
Download the xpi file to test-amo-validator/addons
Edit the file test_amo_validator/
There are a few categories of tests, pick one and add a check for the file that was just downloaded.
git push marlena master for github
pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment