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

New scheme for integration tests in Scala #2000

Open
johanandren opened this issue Jan 30, 2024 · 2 comments
Open

New scheme for integration tests in Scala #2000

johanandren opened this issue Jan 30, 2024 · 2 comments

Comments

@johanandren
Copy link
Contributor

Now that the IntegrationTest config in sbt is deprecated we need a different way to run integration tests, preferably allowing to run them separately from unit tests.

The sbt recommendation is to create separate submodules for integration tests only, which works fine for regular Scala project but seems cumbersome for Kalix projects that would now need to become multi-module.

On the other hand if we come up with our own scheme, we'll have to be careful to choose something that IDEs will understand. Maybe we could rely on Scalatest tags? (https://www.scalatest.org/user_guide/tagging_your_tests)

@johanandren
Copy link
Contributor Author

Turns out I remembered incorrectly that we used IntegrationTests config in the samples, we don't. So this really is about running tests selectively.

@johanandren
Copy link
Contributor Author

johanandren commented Jan 30, 2024

testOnly *Integration* works for running only the integration tests, and turns out we already have a separate sbt setting called onlyUnitTest for running only the unit tests (

val onlyUnitTest = settingKey[Boolean]("Filters out integration tests. By default: false")
)

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

1 participant