Skip to content
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

Unrecognized option "extensions" under "testwork". #1339

Open
Zayon opened this issue Mar 30, 2021 · 1 comment · May be fixed by #1341
Open

Unrecognized option "extensions" under "testwork". #1339

Zayon opened this issue Mar 30, 2021 · 1 comment · May be fixed by #1341
Labels

Comments

@Zayon
Copy link

Zayon commented Mar 30, 2021

Hi,

What I'm trying to have is a suite that does not need extensions and executes fast.
My default suite uses Symfony extension and because it's a big app, creating the container takes a lot of time.
I have a suite "domain" of "acceptance tests" that does not rely on symfony in any way and that is really really fast so I'd like to run this suite before the other on CI.
The fact that my "domain" suite load the extensions makes it slow.

So I tried to create a "domain" profile instead of a suite with this configuration:

default:
  suites:
    default: ....

  extensions:
    Behat\Symfony2Extension:
      kernel:
        bootstrap: config/bootstrap.php
        env: behat
        debug: true
        path: src/Kernel.php
        class: Kernel

domain:
  suites:
    default: ....

  extensions: ~

But I have this issue:

Unrecognized option "extensions" under "testwork". Available options are "argument", "autoload", "calls", "cli", "contexts", "definitions", "environments", "events", "exceptions", "filesystem", "formatters", "gherkin", "gherkin_translations", "helper_container", "hooks", "ordering", "snippets", "specifications", "suites", "testers", "transformations", "translation".

A solution I found is to rename the default profile to something else and remove the extensions key from my domain profile but this breaks the default profile.

This issue is that the default profile is BOTH "the default profile if no profile is specified" AND "the profile that others inherit from" :/

Is there a solution for my need that is not a second configuration file ?

If this is considered a bug that needs to fixed I can make a PR if someone guides me a little on how to implement a fix.

Thanks for your time.

@ciaranmcnulty
Copy link
Contributor

That looks like a bug to me

Zayon added a commit to Zayon/Behat that referenced this issue Apr 9, 2021
@Zayon Zayon linked a pull request Apr 9, 2021 that will close this issue
Zayon added a commit to Zayon/Behat that referenced this issue Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants