testify icon indicating copy to clipboard operation
testify copied to clipboard

Guidance on re-using a shared SetupSuite across multiple packages

Open Oscmage opened this issue 1 year ago • 0 comments

Hi, thanks for this lovely package.

I wonder if it is possible to use a suite across multiple packages?

I have an integration test use case where I'd like to start a container that is expensive in terms of time. I'd like to re-use this container at something like a SetupSuite stage and then tear it down when the full integration suite is complete across all package. I have no problem achieving this when everything is within a shared package. The twist of the problem is that I'd like to re-use this container across multiple packages.

Is my best option to simply put all of my integration tests in one huge package or is there a more clever way to achieve this that doesn't feel like a "hack"?

Thanks!

Oscmage avatar Sep 29 '23 22:09 Oscmage