If you want to writing test case, you have to add javascript code in your Odoo manifest files.
For example see below code.
{
'name': "Demonstration of web/javascript tests",
'category': 'Hidden',
'depends': ['web'],
'test': ['static/test/demo.js'],
}
and after that in next step is to create a test case follow below code.
openerp.testing.section('basic section', function (test) {
test('my first test', function () {
ok(false, "this test has run");
});
});
Note-All testing helpers and structures live in the openerp.testing module.
0 Comment(s)