kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

Setting "concurrency" in .testcaferc.json does not summon several browser instances #58

Closed Marketionist closed 4 years ago

Marketionist commented 4 years ago

Steps to reproduce

  1. Create a config file and set concurrency there - for example:
    {
    "browsers": "chrome",
    "src": ["tests/**/*.js", "tests/**/*.feature"],
    "screenshots": {
        "path": "tests/screenshots/",
        "takeOnFails": true,
        "pathPattern": "${DATE}_${TIME}/test-${TEST_INDEX}/${USERAGENT}/${FILE_INDEX}.png"
    },
    "quarantineMode": false,
    "stopOnFirstFail": true,
    "skipJsErrors": true,
    "skipUncaughtErrors": true,
    "concurrency": 2,
    "selectorTimeout": 3000,
    "assertionTimeout": 1000,
    "pageLoadTimeout": 1000,
    "disablePageCaching": true
    }
  2. Create 2 feature files with some tests
  3. Launch the tests with gherkin-testcafe

Actual result Setting "concurrency" in .testcaferc.json does not summon several browser instances - it executes feature files one after another

Note: launching the tests with gherkin-testcafe --concurrency 2 still works ok and summons 2 browser instances

Marketionist commented 4 years ago

Sorry, my bad - forgot to place .testcaferc.json to the root folder. Now works ok, closing the issue.