Skip to content

Commit

Permalink
Show coverage on Travis (nelmio#474)
Browse files Browse the repository at this point in the history
Runs two tests on Travis: the first one is the unit tests and the second one the integration tests. The coverage is now displayed as well.
  • Loading branch information
theofidry authored Jul 31, 2016
1 parent 475fe12 commit 36dd935
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ install:
script:
- |
if [ -n "$COVERAGE" ]; then
phpdbg -qrr vendor/bin/phpunit --testdox --verbose
phpdbg -qrr vendor/bin/phpunit --verbose --testdox --coverage-text --exclude-group=integration
phpdbg -qrr vendor/bin/phpunit --verbose --coverage-text --group=integration
else
vendor/bin/phpunit
fi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ class FakeAbstractChainableDenormalizer extends AbstractChainableDenormalizer
{
use NotCallableTrait;

/**
* @var AbstractChainableDenormalizer
*/
private $denormalizer;

public function setProphecy(AbstractChainableDenormalizer $denormalizer)
{
$this->__call(__FUNCTION__, func_get_args());
}

/**
* @inheritdoc
*/
Expand All @@ -48,7 +38,7 @@ public function denormalize(
FlagBag $flags
): FixtureBag
{
return $this->denormalizer->denormalize($builtFixtures, $className, $fixtureId, $specs, $flags);
$this->__call(__FUNCTION__, func_get_args());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Nelmio\Alice\Loader\NativeLoader;

/**
* @coversNothing
* @group integration
*/
class LexerIntegrationTest extends \PHPUnit_Framework_TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use Nelmio\Alice\Throwable\ParseThrowable;

/**
* @coversNothing
* @group integration
*/
class ParserIntegrationTest extends \PHPUnit_Framework_TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Nelmio\Alice\Generator\Resolver\Parameter\SimpleParameterBagResolver;

/**
* @coversNothing
* @group integration
*/
class ParameterResolverIntegrationTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Loader/LoaderIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Nelmio\Alice\Throwable\InstantiationThrowable;

/**
* @coversNothing
* @group integration
*/
class LoaderIntegrationTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit 36dd935

Please sign in to comment.