Skip to content

RunFailed module is trying to run removed test  #5938

@fkupper

Description

@fkupper

What are you trying to achieve?

  • Create SomeUnitTest.php test file with at least one test that fails
  • Run the tests
  • Delete the created test file
  • Run tests again
  • RunFailed extension will try to run the deleted file and abort the tests

What do you get instead?

$ codecept run -vvv
Codeception PHP Testing Framework v4.1.6
Powered by PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Running with seed: 

[Seed] 1724191921

In GroupManager.php line 129:
                                                                                             
  [Codeception\Exception\ConfigurationException]                                             
  GroupManager: File or directory /home/vagrant/my-project/tests/unit/SomeUnitTest.php does not exist                                                        
                                                                                             

Exception trace:
  at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Lib/GroupManager.php:129
 Codeception\Lib\GroupManager->checkIfFileExists() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Lib/GroupManager.php:118
 Codeception\Lib\GroupManager->normalizeFilePath() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Lib/GroupManager.php:81
 Codeception\Lib\GroupManager->loadConfiguredGroupSettings() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Lib/GroupManager.php:25
 Codeception\Lib\GroupManager->__construct() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/SuiteManager.php:65
 Codeception\SuiteManager->__construct() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Codecept.php:191
 Codeception\Codecept->runSuite() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Codecept.php:163
 Codeception\Codecept->run() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Command/Run.php:503
 Codeception\Command\Run->runSuites() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Command/Run.php:397
 Codeception\Command\Run->execute() at /home/vagrant/my-project/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/vagrant/my-project/vendor/symfony/console/Application.php:987
 Symfony\Component\Console\Application->doRunCommand() at /home/vagrant/my-project/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /home/vagrant/my-project/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /home/vagrant/my-project/vendor/codeception/codeception/src/Codeception/Application.php:117
 Codeception\Application->run() at /home/vagrant/my-project/vendor/codeception/codeception/app.php:46
 {closure}() at /home/vagrant/my-project/vendor/codeception/codeception/app.php:47
 require() at /home/vagrant/my-project/vendor/codeception/codeception/codecept:7

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] [--bootstrap [BOOTSTRAP]] [--no-redirect] [--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] [--no-artifacts] [--] [<suite>] [<test>]

Provide test source code if related

// paste test

Details

  • Codeception version: 4.1.6
  • PHP Version: 7.3
  • Operating System: ubuntu
  • Installation type: Composer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions