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

--cover-inclusive causes Failure: RuntimeError (Model class project.app.models.MyModel doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.) #298

Open
radzhome opened this issue Jan 29, 2019 · 0 comments

Comments

@radzhome
Copy link

This flag seems to cover models.py tests but breaks other tests when using the following in settings.py

TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
    '--cover-package=lib',
    '--cover-package=app',
    '--logging-level=INFO',
    '--cover-erase',
    '--with-coverage',
    '--cover-branches',
    '--cover-html',  # generate HTML coverage report
    '--cover-min-percentage=40',
    '--cover-inclusive',  # can't get coverage results on most files without this... This breaks django tests.
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant