Skip to content

Commit

Permalink
Add "php_version" and "wordpress_version" to "run:e2e"
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Apr 10, 2024
1 parent c57e6b3 commit 6665432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified qit
Binary file not shown.
6 changes: 6 additions & 0 deletions src/src/Commands/CustomTests/RunE2ECommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use QIT_CLI\Cache;
use QIT_CLI\Commands\DynamicCommand;
use QIT_CLI\Commands\DynamicCommandCreator;
use QIT_CLI\Commands\Environment\UpEnvironmentCommand;
use QIT_CLI\Environment\Environments\E2E\E2EEnvInfo;
use QIT_CLI\Environment\Environments\E2E\E2EEnvironment;
Expand Down Expand Up @@ -67,6 +68,11 @@ protected function configure() {
throw new \RuntimeException( 'E2E schema not set or incomplete.' );
}

DynamicCommandCreator::add_schema_to_command( $this, $schemas['e2e'], [], [
'wordpress_version',
'php_version',
] );

$this
->addArgument( 'woo_extension', InputArgument::OPTIONAL, 'A QIT plugin-syntax as defined in the documentation: source:action:test-tags:slug. Only "source" is required, and it can be a slug, a file, a URL. Action can be "activate", "bootstrap", and "test", and test-tags are a comme-separated list of tests. Slug is usually not required. Read the docs.' )
->addArgument( 'test', InputArgument::OPTIONAL, '(Optional) The tests for the main extension under test. Accepts test tags, or a test directory. If not set, will use the "default" test tag of this extension.' )
Expand Down

0 comments on commit 6665432

Please sign in to comment.