You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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.
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.
馃殌 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 want to keep tests running in parallel, except for a few tests depend on a specific one
Motivation
Example
No response
Pitch
The text was updated successfully, but these errors were encountered: