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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: test dependents #14038

Closed
its-dibo opened this issue Mar 29, 2023 · 4 comments
Closed

[Feature]: test dependents #14038

its-dibo opened this issue Mar 29, 2023 · 4 comments

Comments

@its-dibo
Copy link

馃殌 Feature Proposal

I know that its better to run each test independently, but sometimes it's better to make tests depend on other tests.
consider a scenario where you test several files in a package that deals with databases, you may want to run the connection test file first and then run other files in the package.

here are some considerations:

  • I don't talk about running tests sequentially, especially since there is no guarantee that they will run in a specific order.
    I want to keep tests running in parallel, except for a few tests depend on a specific one
  • if each file created a new connection to run each own test, it may cause the db driver to throw an error or it causes creating too many connections (unless a bit complicated setup that observes the connection and returns it if it has already been created rather than creating a new one)

Motivation

Example

No response

Pitch

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 29, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant