-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
codecept run --debug --coverage-html fails when excluded directory not exists. #5485
Copy link
Copy link
Closed
Description
What are you trying to achieve?
Run some test with coverage with excluded directories. These directories may not exists.
What do you get instead?
If a directory not exits, and it defined to be excluded, then it should be ignored when not found.
Provide console output if related. Use
-vvvmode for more details.
composer test-ci
Do not run Composer as root/super user! See https://getcomposer.org/root for details
> vendor/bin/codecept run --debug --coverage-html --coverage-xml --coverage-crap4j --xml --html --no-colors --no-exit
Codeception PHP Testing Framework v2.5.6
Powered by PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Running with seed:
In Finder.php line 547:
[InvalidArgumentException]
The "/vagrant/repos/somerepo//.git" directory does not exist.
Exception trace:
() at /vagrant/repos/somerepo/vendor/symfony/finder/Finder.php:547
Symfony\Component\Finder\Finder->in() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Coverage/Filter.php:161
Codeception\Coverage\Filter->matchWildcardPattern() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Coverage/Filter.php:96
Codeception\Coverage\Filter->whiteList() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Coverage/Subscriber/Printer.php:42
Codeception\Coverage\Subscriber\Printer->__construct() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Codecept.php:138
Codeception\Codecept->registerSubscribers() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Codecept.php:87
Codeception\Codecept->__construct() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Command/Run.php:381
Codeception\Command\Run->execute() at /vagrant/repos/somerepo/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /vagrant/repos/somerepo/vendor/symfony/console/Application.php:960
Symfony\Component\Console\Application->doRunCommand() at /vagrant/repos/somerepo/vendor/symfony/console/Application.php:255
Symfony\Component\Console\Application->doRun() at /vagrant/repos/somerepo/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /vagrant/repos/somerepo/vendor/codeception/codeception/src/Codeception/Application.php:108
Codeception\Application->run() at /vagrant/repos/somerepo/vendor/codeception/codeception/codecept:43
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--phpunit-xml [PHPUNIT-XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--seed SEED] [--] [<suite>] [<test>]
Script vendor/bin/codecept run --debug --coverage-html --coverage-xml --coverage-crap4j --xml --html --no-colors --no-exit handling the test-ci event returned with error code 1
Provide test source code if related
// paste testDetails
- Codeception version: 2.5.6
- PHP Version: 7.2.11-1
- Operating System:
cat /etc/debian_version
8.8
- Installation type: Composer
- List of installed packages
behat/gherkin v4.6.0 Gherkin DSL parser for PHP 5.3
codeception/aspect-mock 3.0.2 Experimental Mocking Framework powered by Aspects
codeception/codeception 2.5.6 BDD-style testing framework
codeception/phpunit-wrapper 6.6.1 PHPUnit classes used by Codeception
codeception/specify 1.0 BDD code blocks for PHPUnit and Codeception
codeception/stub 2.1.0 Flexible Stub wrapper for PHPUnit's Mock Builder
codeception/verify 1.0.0 BDD assertion library for PHPUnit
composer/ca-bundle 1.1.4 Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
composer/xdebug-handler 1.3.2 Restarts a process without xdebug.
consolidation/annotated-command 2.12.0 Initialize Symfony Console commands from annotated command class methods.
consolidation/config 1.2.1 Provide configuration services for a commandline tool.
consolidation/log 1.1.1 Improved Psr-3 / Psr\Log logger based on Symfony Console components.
consolidation/output-formatters 3.4.1 Format text by applying transformations provided by plug-in formatters.
consolidation/robo 1.4.9 Modern task runner
consolidation/self-update 1.1.5 Provides a self:update command for Symfony Console applications.
container-interop/container-interop 1.2.0 Promoting the interoperability of container objects (DIC, SL, etc.)
dflydev/dot-access-data v1.1.0 Given a deep data structure, access data by dot notation.
docopt/docopt 1.0.3 Port of Python's docopt for PHP >=5.3
doctrine/annotations v1.6.1 Docblock Annotations Parser
doctrine/cache v1.8.0 Caching library offering an object-oriented API for many cache backends
doctrine/instantiator 1.2.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
edgedesign/phpqa v1.20.0 Analyze PHP code with one command.
facebook/webdriver 1.6.0 A PHP client for Selenium WebDriver
goaop/framework 2.2.0 Framework for aspect-oriented programming in PHP.
goaop/parser-reflection 1.4.1 Provides reflection information, based on raw source
grasmash/expander 1.0.0 Expands internal property references in PHP arrays file.
grasmash/yaml-expander 1.4.0 Expands internal property references in a yaml file.
guzzlehttp/guzzle 6.3.3 Guzzle is a PHP HTTP client library
guzzlehttp/promises v1.3.1 Guzzle promises library
guzzlehttp/psr7 1.5.2 PSR-7 message implementation that also provides common utility methods
jakub-onderka/php-console-color v0.2
jakub-onderka/php-console-highlighter v0.3.2
jakubledl/dissect v1.0.1 Lexing and parsing in pure PHP
league/container 2.4.1 A fast and intuitive dependency injection container.
mikey179/vfsStream v1.6.6 Virtual file system to mock the real file system in unit tests.
muglug/package-versions-56 1.2.4 A backport of ocramius/package-versions that supports php ^5.6. Composer plugin that provides efficient querying for installed package ver...
myclabs/deep-copy 1.9.1 Create deep copies (clones) of your objects
nikic/php-parser v3.1.5 A PHP parser written in PHP
openlss/lib-array2xml 0.5.1 Array2XML conversion library credit to lalit.org
overtrue/phplint 1.1.9 a php syntax check tool.
pdepend/pdepend 2.5.2 Official version of pdepend to be handled with Composer
phar-io/manifest 1.0.1 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 1.0.1 Library for handling version information and constraints
php-cs-fixer/diff v1.3.0 sebastian/diff v2 backport support for PHP5.6
phpdocumentor/reflection-common 1.0.1 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 4.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a D...
phpdocumentor/type-resolver 0.4.0
phploc/phploc 4.0.1 A tool for quickly measuring the size of a PHP project.
phpmd/phpmd 2.6.0 PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
phpmetrics/phpmetrics v2.4.1 Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more !
phpspec/prophecy 1.8.0 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage 5.3.2 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 1.4.5 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template 1.2.1 Simple template engine.
phpunit/php-timer 1.0.9 Utility class for timing
phpunit/php-token-stream 2.0.2 Wrapper around PHP's tokenizer extension.
phpunit/phpunit 6.5.14 The PHP Unit Testing framework.
phpunit/phpunit-mock-objects 5.0.10 Mock Object library for PHPUnit
povils/phpmnd v1.1.1 A tool to detect Magic numbers in codebase
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/http-message 1.0.1 Common interface for HTTP messages
psr/log 1.1.0 Common interface for logging libraries
ralouphie/getallheaders 2.0.5 A polyfill for getallheaders.
sebastian/code-unit-reverse-lookup 1.0.1 Looks up which function or method a line of code belongs to
sebastian/comparator 2.1.3 Provides the functionality to compare PHP values for equality
sebastian/diff 2.0.1 Diff implementation
sebastian/environment 3.1.0 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 3.1.0 Provides the functionality to export PHP variables for visualization
sebastian/finder-facade 1.2.2 FinderFacade is a convenience wrapper for Symfony's Finder component.
sebastian/global-state 2.0.0 Snapshotting of global state
sebastian/object-enumerator 3.0.3 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 1.1.1 Allows reflection of object attributes, including inherited and non-public ones
sebastian/phpcpd 3.0.1 Copy/Paste Detector (CPD) for PHP code.
sebastian/recursion-context 3.0.0 Provides functionality to recursively process PHP variables
sebastian/resource-operations 1.0.0 Provides a list of PHP built-in functions that operate on resources
sebastian/version 2.0.1 Library that helps with managing the version number of Git-hosted PHP projects
sensiolabs/security-checker v5.0.3 A security checker for your composer.lock
squizlabs/php_codesniffer 3.4.2 PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
symfony/browser-kit v4.2.7 Symfony BrowserKit Component
symfony/config v4.2.7 Symfony Config Component
symfony/console v3.4.26 Symfony Console Component
symfony/contracts v1.0.2 A set of abstractions extracted out of the Symfony components
symfony/css-selector v4.2.7 Symfony CssSelector Component
symfony/debug v4.2.7 Symfony Debug Component
symfony/dependency-injection v4.2.7 Symfony DependencyInjection Component
symfony/dom-crawler v4.2.7 Symfony DomCrawler Component
symfony/event-dispatcher v4.2.7 Symfony EventDispatcher Component
symfony/filesystem v4.2.7 Symfony Filesystem Component
symfony/finder v3.4.26 Symfony Finder Component
symfony/polyfill-ctype v1.11.0 Symfony polyfill for ctype functions
symfony/polyfill-mbstring v1.11.0 Symfony polyfill for the Mbstring extension
symfony/process v4.2.7 Symfony Process Component
symfony/yaml v4.2.7 Symfony Yaml Component
theseer/fdomdocument 1.6.6 The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings ...
theseer/tokenizer 1.1.2 A small library for converting tokenized PHP source code into XML and potentially other formats
twig/twig v2.8.1 Twig, the flexible, fast, and secure template language for PHP
vimeo/psalm 1.1.9 A static analysis tool for finding errors in PHP applications
wapmorgan/php-code-analyzer 1.0.5 A program that finds usage of different non-built-in extensions in your php code.
wapmorgan/php-code-fixer 2.0.17 A scanner that checks compatibility of your code with new interpreter versions.
webmozart/assert 1.4.0 Assertions to validate method input/output with nice error messages.
- Suite configuration:
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
settings:
colors: true
strict_xml: true
memory_limit: 1024M
coverage:
enabled: true
include:
- somerepo/*/*.php
exclude:
- .git/*
- vendor/*Nice issue template by the way.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels