[EV-62] Add the ability to log timing information during paver tasks
This commit is contained in:
@@ -3,6 +3,7 @@ Helper functions for test tasks
|
||||
"""
|
||||
from paver.easy import sh, task, cmdopts
|
||||
from pavelib.utils.envs import Env
|
||||
from pavelib.utils.timer import timed
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
@@ -15,6 +16,7 @@ __test__ = False # do not collect
|
||||
|
||||
|
||||
@task
|
||||
@timed
|
||||
def clean_test_files():
|
||||
"""
|
||||
Clean fixture files used by tests and .pyc files
|
||||
@@ -42,6 +44,7 @@ def clean_dir(directory):
|
||||
('skip-clean', 'C', 'skip cleaning repository before running tests'),
|
||||
('skip_clean', None, 'deprecated in favor of skip-clean'),
|
||||
])
|
||||
@timed
|
||||
def clean_reports_dir(options):
|
||||
"""
|
||||
Clean coverage files, to ensure that we don't use stale data to generate reports.
|
||||
@@ -57,6 +60,7 @@ def clean_reports_dir(options):
|
||||
|
||||
|
||||
@task
|
||||
@timed
|
||||
def clean_mongo():
|
||||
"""
|
||||
Clean mongo test databases
|
||||
|
||||
Reference in New Issue
Block a user