Daniel-Marynicz / BehatParallelExtension

Behat Parallel Extension
MIT License
22 stars 6 forks source link

Error: No specifications found at path(s) . ... This might be because of incorrect paths configuration in your `suites`. #73

Open Starkmann opened 3 months ago

Starkmann commented 3 months ago

When i run vendor/bin/behat -c tests/behavior/behat.yml "$@" everything works fine.

But when i run vendor/bin/behat --parallel-feature -c tests/behavior/behat.yml "$@"

i get the following error: No specifications found at path(s). ... This might be because of incorrect paths configuration in your suites.

My behat.yml:

default:
  suites:
      default:
        filters:
          tags: "~@skip"
        #@TODO: split motion and newsletter
        paths: [features/Motion]
        contexts:
          - FeatureContext
  extensions:
     Behat\MinkExtension:
        base_url: https://xxx.lan
        browser_name: chrome
        selenium2:
          wd_host: http://browser:4444/wd/hub
          capabilities: {
            "browser": "chrome",
            "version": "*" ,
            "acceptSslCerts": true,
            "extra_capabilities": {
              "acceptInsecureCerts": true,
              'chrome': {
                args: [
                  '--disable-dev-shm-usage',
                  '--window-size=1920,6080',
                ],
              }
            }
          }
        files_path: tests/behavior/dummy/
     DMarynicz\BehatParallelExtension\Extension: ~
Daniel-Marynicz commented 3 months ago

What you have in your argument "$@" ?

Starkmann commented 3 months ago

This is the problem: paths: [features/Motion]

with

paths:
          features: '%paths.base%/features/Motion'

it works

Starkmann commented 3 months ago

What you have in your argument "$@" ?

Good catch but it was empty

Starkmann commented 3 months ago

Btw. thanks for you work! Tests went down from 20min to 8min.