def measurement_with_tools(measurement, tmpdir):
    """Create a measurement with all dummy tools attached.

    """
    measurement.add_tool('pre-hook', 'dummy')
    measurement.add_tool('post-hook', 'dummy')
    measurement.add_tool('monitor', 'dummy')
    measurement.root_task.default_path = str(tmpdir)
    return measurement