Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Benefits of testing module in OpenERP/Odoo

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 148
    Comment on it

    Odoo provides support for testing modules using unittest.
    To write tests, simply define a tests sub-package in your module, it will be automatically inspected for test modules. Test modules should have a name starting with test_ and should be imported from tests/__init__.py,

    Test_module
    |-- ...
    `-- tests
        |-- __init__.py
        |-- test_bar.py
        `-- test_foo.py
    and __init__.py contains:
    from . import test_foo, test_bar

    Note- test modules which are not imported from tests/__init__.py will not be run.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: