Skip to content

Reproduction and potential solution for issue: "cypress-split always uses average duration" #267#268

Draft
KleaTech wants to merge 1 commit intobahmutov:mainfrom
KleaTech:main
Draft

Reproduction and potential solution for issue: "cypress-split always uses average duration" #267#268
KleaTech wants to merge 1 commit intobahmutov:mainfrom
KleaTech:main

Conversation

@KleaTech
Copy link
Copy Markdown

To reproduce the issue described in #267 :

  1. Run npm run timings-alternative-config to generate split file
  2. Run npm run timings-alternative-config again to see the durations
  3. Observe that all durations are equal (average)
    image

To see the fix in action:

  1. Run rm test/alternative-config-timings.json to remove the timings file, you need to generate it again
  2. Run SPLIT_FIX=true npm run timings-alternative-config to generate split file using the fix
  3. Run SPLIT_FIX=true npm run timings-alternative-config again to see the durations
  4. Observe that durations are correct
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant