Perfomatic/Tests

From MozillaWiki
Jump to navigation Jump to search

Performatic Tests

[DRAFT]

Basics

  • Tests will be located in /tests/tests.py (once I have commit access). At present these only include installation tests.
  • Tests are written using PyUnit [1] , which does not require any installation. Classes needed to write tests can be found in the 'unittest' module.
  • For now we'll put all tests in one file, although down the track we may split this out into multiple files.
  • All new code should have a test :)

Test Data

  • We need a defined set of test data. (Yet to be done, since install tests don't require this.)

How to run tests

How to write tests