According to the documentation, I created tests package and added some demo tests. But I cant see their execution. Simply this is what I have done.
my_module
|------
tests
__init__.py
test_my_test.py
Code in test_my_test.py
from openerp.tests import common
class TestStringMethods(common.TransactionCase):
def setup(self):
print ("executing setup . . .")
super(TestStringMethods, self).setUp()
def test_upper(self):
print ("executing test upper. . . ")
self.assertEqual('foo'.upper(), 'FOO')
In the __init__.py I imported test_my_test and imported tests in main __init__.py
Also added --test-enable parameter in run script.
When updating module, I can't see the execution of these test methods on console