@click.command()<EOL>@click.pass_context<EOL>@decorators.print_markers<EOL>def watch(ctx):
vcs = ctx.obj['<STR_LIT>']<EOL>event_handler = TestsEventHandler(vcs)<EOL>observer = Observer()<EOL>observer.schedule(event_handler, vcs.path, recursive=True)<EOL>observer.start()<EOL>click.echo('<STR_LIT>'.format(path=vcs.path))<EOL>while observer.isAlive():<EOL><INDENT>observer.join(timeout=<NUM_LIT:1>)<EOL><DEDENT>
Watch the directory for changes. Automatically run tests.