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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persisting container across multiple test classes #140

Open
BLZB0B opened this issue Sep 17, 2020 · 0 comments
Open

Persisting container across multiple test classes #140

BLZB0B opened this issue Sep 17, 2020 · 0 comments

Comments

@BLZB0B
Copy link

BLZB0B commented Sep 17, 2020

Hi,

Our project (like most others) has several scala test classes. the behaviour I'm seeing when running sbt test is that our postgres container spins up, runs the tests for one class, shuts down the container, spins up another (identical) container for the next class, runs tests, shuts down etc etc for every test class (all in the same test folder). the side effect of this is our CI server is taking over an hour to build / test each project.. most of this time is waiting for postgres to start up on each new container.

is there a way to spin up the container on the first test and only when all tests in all classes have been run, then shut down?

thanks

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

No branches or pull requests

1 participant