anthem icon indicating copy to clipboard operation
anthem copied to clipboard

Not possible to run tests: invoke tasks missing

Open simahawk opened this issue 8 years ago • 4 comments

Impossible to run tests locally and travis is read for the same reason: No idea what 'tests.prepare_config' is!

https://travis-ci.org/camptocamp/anthem#L522

/cc @leemannd

simahawk avatar Oct 17 '17 09:10 simahawk

N.B: We found it while trying to locally test anthem with V11 and python3. There is an ongoing PR

leemannd avatar Oct 17 '17 09:10 leemannd

README says:

But before, you have to ensure to have the proper environment for the tests with:

$ invoke tests.prepare $ invoke tests.createdb

Those steps, automatically called when using tox, will download the nightly release of Odoo and install it as a package, so tests can be run against it (and that's also why it is important to use a virtualenv!)

When calling pytest, you have to define the OPENERP_SERVER environment variable with the configuration file for the Odoo database that will be used for the tests.

@leemannd did you do this locally?

I guess travis conf needs fixes anyway.

simahawk avatar Oct 17 '17 10:10 simahawk

@simahawk I builded the env with python3 and first used the tox command and then tryed to use these steps. The two invoke commands are working but I didn't ran pytest

leemannd avatar Oct 17 '17 10:10 leemannd

This is fixed on this commit 652ae80f08 More information why https://github.com/pyinvoke/invoke/issues/468

TDu avatar Nov 02 '17 10:11 TDu