Skip to content

--override is not woking #6818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vincents75 opened this issue Jan 13, 2025 · 0 comments
Open

--override is not woking #6818

vincents75 opened this issue Jan 13, 2025 · 0 comments

Comments

@vincents75
Copy link

vincents75 commented Jan 13, 2025

What are you trying to achieve?

I need to execute tests in parallel, ensuring that each group uses a distinct database. To achieve this, I am using the --override option to specify the database name at runtime. However, it still references the database defined in functional.suite.yml.
I am using the following command:

vendor\bin\codecept.bat run --group paracept_1 --override "modules.config.Db.dsn: mysql:host=localhost;dbname=base_admintest_1" --html result_1.html functional
Also i tried with
vendor\bin\codecept.bat run --group paracept_1 --override "modules: config: Db: dsn: mysql:host=localhost;dbname=base_admintest_1" --html result_1.html functional

  • Codeception version: 4.2.2
  • PHP Version: 8.1.19
  • Operating System: Windows
  • Installation type: Composer
  • List of installed packages (composer show)
  • Suite configuration:
Functional Suite Configuration 
---------------------------------
actor: FunctionalTester
paths:
    tests: tests
    output: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
extensions:
    enabled:
        - Codeception\Extension\RunFailed
modules:
    enabled:
        - Asserts
        - \Helper\Functional
        - Db
        - DbHelper
        - REST:
            depends: PhpBrowser
    config:
        Db:
           dsn: 'mysql:host=localhost;port=3306;dbname=admintest'
           user: 'expuser'
           password: 'expuser'
           databases:
            db2:
               dsn: 'mysql:host=localhost;dbname=universal_profile_test'
               user: 'expuser'
               password: 'expuser'
        PhpBrowser:
            url: https://irisdev.exphosted.com
            curl:
               CURLOPT_RETURNTRANSFER: true
    step_decorators: ~ 
groups:
    paracept_*: D:\Apache24\htdocs\local\ExpertusONELMS\tests\_data\paracept_*


Codeception configuration (codeception.yml)
---------------------------------------------------
paths:
    tests: tests
    output: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
bootstrap: _bootstrap.php    
actor_suffix: Tester
extensions:
    enabled:
        - Codeception\Extension\RunFailed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy