Permalink
Browse files

Configurable suite name

  • Loading branch information...
davedevelopment committed Jul 6, 2012
1 parent 4c96e3b commit 6f9f34b7253662360cc4f78a5f74d108be809f90
Showing with 4 additions and 1 deletion.
  1. +2 −0 dspec.yml.dist
  2. +1 −1 src/DSpec/Console/Command/DSpecCommand.php
  3. +1 −0 src/DSpec/Provider/ConfigServiceProvider.php
View
@@ -1,5 +1,7 @@
default:
+ suite_name: DSpec
+
# Load hamcrest matchers
bootstrap:
@@ -148,7 +148,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// context and run
$context = new SpecContext();
- $suite = new ExampleGroup("Suite", $context);
+ $suite = new ExampleGroup($config->suite_name, $context);
$reporter = new Reporter($container['dispatcher']);
ds::setContext($context);
@@ -36,6 +36,7 @@ public function register(Container $container)
'formatters' => array(),
'paths' => array(),
'bootstrap' => false,
+ 'suite_title' => 'Suite',
),
);

0 comments on commit 6f9f34b

Please sign in to comment.