From 21ec70374250a2b7524107dfb62070ba9b67b683 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Sat, 14 Dec 2013 16:25:24 +0100 Subject: [PATCH] Renaming new behat parameter --name to --testname --- lib/commands/behat.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/commands/behat.py b/lib/commands/behat.py index d0d9a77..877c179 100644 --- a/lib/commands/behat.py +++ b/lib/commands/behat.py @@ -57,10 +57,11 @@ class BehatCommand(Command): } ), ( - ['-n', '--name'], + ['-n', '--testname'], { + 'dest': 'testname', 'metavar': 'name', - 'help': 'Only execute the feature elements which match part of the given name or regex.' + 'help': 'only execute the feature elements which match part of the given name or regex' } ), ( @@ -75,7 +76,7 @@ class BehatCommand(Command): { 'action': 'store_true', 'dest': 'nojavascript', - 'help': 'do not start Selenium and ignore Javascript (short for --tags=~@javascript). Cannot be combined with --tags.' + 'help': 'do not start Selenium and ignore Javascript (short for --tags=~@javascript). Cannot be combined with --tags or --testname.' } ), ( @@ -198,12 +199,12 @@ class BehatCommand(Command): # Preparing Behat command cmd = ['vendor/bin/behat'] if args.tags: - cmd.append('--tags=%s' % (args.tags)) + cmd.append('--tags="%s"' % (args.tags)) - if args.name: - cmd.append('--name=%s' % (args.name)) + if args.testname: + cmd.append('--name="%s"' % (args.testname)) - if not (args.tags or args.name) and nojavascript: + if not (args.tags or args.testname) and nojavascript: cmd.append('--tags ~@javascript') cmd.append('--config=%s/behat/behat.yml' % (M.get('behat_dataroot'))) -- 2.11.0