Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Fixes about "paratest:run" command after #265:
Browse files Browse the repository at this point in the history
Fix typos from previous commit 6ab2faf
Decrease the number of processes
  • Loading branch information
alexislefebvre committed May 10, 2016
1 parent 6ab2faf commit f3606bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/RunParatestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
$this
->setName('paratest:run')
->setDescription('Run phpunit tests with multiple processes')
// Pass arguments from this command "paratest:run" to the paratest binary.
// Pass arguments from this command "paratest:run" to the paratest command.
->addArgument('options', InputArgument::OPTIONAL, 'Options')
;
}
Expand Down
1 change: 1 addition & 0 deletions Tests/AppConfig/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ liip_functional_test:
- 'ignore_extract_1'
- 'ignore_extract_2'
paratest:
process: 3
phpunit: 'vendor/bin/phpunit'

# HautelookAliceBundle: custom Faker provider
Expand Down
4 changes: 2 additions & 2 deletions Tests/Command/ParatestCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function testParatest()

$this->isDecorated(false);
$content = $this->runCommand('paratest:run', array(
// Don't ignore the "paratest" group that is ignored by default.
// Only launch one test class, launching more classes may start an infinite loop.
'options' => 'Tests/Test/WebTestCaseTest.php',
));

$this->assertContains('Running phpunit in 5 processes with vendor/bin/phpunit', $content);
$this->assertContains('Running phpunit in 3 processes with vendor/bin/phpunit', $content);
$this->assertContains('Initial schema created', $content);
$this->assertNotContains('Error : Install paratest first', $content);
$this->assertContains('Done...Running test.', $content);
Expand Down
1 change: 1 addition & 0 deletions Tests/DependencyInjection/ConfigurationConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function parametersProvider()
'ignore_extract_1',
'ignore_extract_2',
)),
array('paratest.process', 3),
array('paratest.phpunit', 'vendor/bin/phpunit'),
);
}
Expand Down

0 comments on commit f3606bf

Please sign in to comment.