Keshi
Keshi

Reputation: 1084

Django Jenkins Test runner - Slow

I am using django_discover_jenkins module for generating jenkins reports as a part of unit test runs.

Has anyone used this before and found it to be slower? The coverage tasks slow this down considerably.

How do I remove coverage task from the django_discover_jenkins task set without editing the settings file.

Upvotes: 0

Views: 581

Answers (2)

kmmbvnr
kmmbvnr

Reputation: 6139

Check the latest version of original django-jenkins library. It has same unit test discovery method and coverage disabled by default. Coverage could be enabled with --enable-coverage command line option.

Upvotes: 0

Alasdair
Alasdair

Reputation: 309109

To exclude the coverage task, define TEST_TASKS in your project's settings.py, and leave out the coverage task.

TEST_TASKS = (
    # 'discover_jenkins.tasks.run_pylint.PyLintTask',
    'discover_jenkins.tasks.with_coverage.CoverageTask',
)

I'm not sure why you don't want to edit settings.py, that's the documented way to do it.

Upvotes: 1

Related Questions