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

Spring tests execution problem (parallel) #931

Open
Majstr opened this issue Oct 16, 2020 · 2 comments
Open

Spring tests execution problem (parallel) #931

Majstr opened this issue Oct 16, 2020 · 2 comments

Comments

@Majstr
Copy link

Majstr commented Oct 16, 2020

I am running test with Spring framework. With Spek version 2.0.13 I get this error:

Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8080 is already in use

This is probably because tests are run parallel instead of sequential. It looks like it from Intellij menu too.

Version 2.0.12 works good.

I have also tried with spek2.discovery.parallel.enabled but it runs the same way.

@steintore
Copy link

I got the same issue running Gradle tests. Even if it says that parallel is disabled by default, Gradle now runs all tests in parallel.
Happens only on version 2.0.13.

I have tried to set both
spek2.discovery.parallel.enabled
spek2.execution.parallel.enabled

but they do not seem have any impact on the test execution being run in parallel

@raniejade
Copy link
Member

raniejade commented Oct 16, 2020

2.0.13 is a broken, please use 2.0.12 for now. Will be fixed in 2.0.14. Please see #924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants