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

Shared run sometimes is not triggered #248

Open
soliarudyk opened this issue Nov 14, 2023 · 2 comments
Open

Shared run sometimes is not triggered #248

soliarudyk opened this issue Nov 14, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@soliarudyk
Copy link

Describe the bug
When TESTOMATIO_SHARED_RUN=1 parameter is set I expect to receive 1 test run when I have a few workers running tests in parallel, instead a few runs are created

To Reproduce
Set up in package.json 2 scripts
first one is abasic script for running tests, the second one is more parameterized version of the first one
like this:
"test:parallel": "TESTOMATIO=${TESTOMATIO_TOKEN} TESTOMATIO_URL=${TESTOMATIO_URL} TESTOMATIO_CREATE=1 cross-env HEADLESS=true codeceptjs run-workers 10 --plugins allure",
"test:checkout": "TESTOMATIO_TITLE="E2E-checkout build:${BUILD_ID}" TESTOMATIO_SHARED_RUN=1 TEST_SUITE=checkout npm run test:parallel -- --grep '(?=.*@checkout)'",

And trigger secondscript: npm run test:checkout

Expected behavior
One test run should be generated

NOTE: sometimes a few test runs are created in case if env variable BUILD_ID was not passed and then test run title becomes E2E-checkout build: and we see a few runs like this in the testomat system

Screenshots
Screenshot 2023-11-14 at 12 44 53

Desktop (please complete the following information):

  • OS: Mac
  • Browser chrome
  • Version 19.0.6045.105
@soliarudyk soliarudyk added the bug Something isn't working label Nov 14, 2023
@olexandr13 olexandr13 self-assigned this Jan 13, 2024
@olexandr13
Copy link
Collaborator

@DavertMik multiple runs are created when run multiple workers
to simplify the reproduction steps, run something like TESTOMATIO_SHARED_RUN=1 TESTOMATIO_TITLE='E2E-tests' npx codeceptjs run-workers 2

@olexandr13
Copy link
Collaborator

@DavertMik does TESTOMATIO_SHARED_RUN could be used only with start-test-run command?

@olexandr13 olexandr13 removed their assignment Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants