Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to run tests: invoke tasks missing #27

Open
simahawk opened this issue Oct 17, 2017 · 4 comments
Open

Not possible to run tests: invoke tasks missing #27

simahawk opened this issue Oct 17, 2017 · 4 comments
Labels

Comments

@simahawk
Copy link
Member

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

@leemannd
Copy link
Member

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

@simahawk simahawk added the bug label Oct 17, 2017
@simahawk
Copy link
Member Author

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.

@leemannd
Copy link
Member

@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

@TDu
Copy link
Member

TDu commented Nov 2, 2017

This is fixed on this commit 652ae80
More information why pyinvoke/invoke#468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants