← Back to team overview

openerp-india team mailing list archive

[Bug 894360] Re: idea yml test case is not working

 

Hello,

This is not really a bug, our regression/continuous integration tests are meant to run only during the initial installation of a module.
This is because the test very often rely on the demo data or default data installed by the modules.
After the initial installation there are many changes that can break the tests, and this is okay, we don't really care.
This is also the reason why tests are only enabled when the database is in demo mode, and also the reason why having a test failure will not block the installation of a module.

I hope you understand, but really there is no guarantee for re-running
tests after the initial installation...

PS: technically in the current case this could be easily fixed by adding
a view:False parameter in the yaml !record that create new users, so
they would not be using the inherited user view for the creation. But
this is a waste of time, we simply can't guarantee that tests will pass
after the initial installation of a module, and we don't want to.

** Changed in: openobject-server
   Importance: Low => Undecided

** Changed in: openobject-server
       Status: Confirmed => Won't Fix

** Changed in: openobject-server
     Assignee: OpenERP's Framework R&D (openerp-dev-framework) => (unassigned)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/894360

Title:
  idea yml test case is not working

Status in OpenERP Server:
  Won't Fix

Bug description:
  
  install idea and hr_timsheet and run idea module yml test case so it's working good for first time but after than again you want to try run that yml test case of idea module so it's give a error
  like :---
  ERROR:tests.idea:('View error', u"Can't find field 'context_department_id' in the following view parts composing the view of object model 'res.users':\n * res.users.form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/894360/+subscriptions


References