Closed Bug 843286 Opened 12 years ago Closed 7 years ago

ability to create a mozbase test from a template

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: k0scist, Unassigned)

Details

While there is not a bunch of structure to mozbase tests, there is enough things to remember that people, including myself, copy+paste which leads to artifacts that should not be there. What basically should be in a virgin test: ''' #!/usr/bin/env python # MPL license block blah blah # nobody reads this and stuff """ tests for ${module} (or better description) """ import ${module} import unittest class ${module}Test(unittest.TestCase): def test_${module}(self): pass if __name__ == '__main__': unittest.main() ''' Obviously we could get fancier than this. There should be a script that takes the variable(s) (just module in this case), substitutes for the template, outputs to a desired path, and makes it executable (on posix). The documentation should then be updated to note how to write a test.
Mass closing bugs with no activity in 2+ years. If this bug is important to you, please re-open.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.