Skip to content

Run test cases in parallel #40

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

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Run test cases in parallel #40

merged 1 commit into from
Jan 4, 2024

Conversation

Eskibear
Copy link
Member

@Eskibear Eskibear commented Jan 3, 2024

Now we have multiple test cases with a reasonable delay of 5s~10s. Run them in parallel will speed up the CI.

This PR:

  • enables parallel mode
  • set suite-level timeout instead of global
  custom client options
    ✔ should retry 2 times by default (5013ms)
    ✔ should override default retry options (10024ms)
    ✔ should retry on DNS failure (5005ms)


  request tracing
    ✔ should have correct user agent prefix (5004ms)
    ✔ should have request type in correlation-context header (5003ms)
    ✔ should have key vault tag in correlation-context header (5015ms)
    ✔ should detect env in correlation-context header (5011ms)
    ✔ should detect host type in correlation-context header (5002ms)
    ✔ should disable request tracing when AZURE_APP_CONFIGURATION_TRACING_DISABLED is true (10009ms)

Before

  29 passing (55s)

After

  29 passing (36s)

@Eskibear Eskibear merged commit 68a8458 into main Jan 4, 2024
@Eskibear Eskibear deleted the parallel-tests branch January 4, 2024 01:41
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.

2 participants