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
chore: Split long running integration tests and fast unit tests (DEV-1537) #2315
Conversation
9b08243
to
0af5e8a
Compare
Codecov ReportBase: 86.95% // Head: 85.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2315 +/- ##
==========================================
- Coverage 86.95% 85.89% -1.06%
==========================================
Files 242 235 -7
Lines 28102 27916 -186
==========================================
- Hits 24435 23978 -457
- Misses 3667 3938 +271
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
4ea0a7b
to
3b369ef
Compare
3b369ef
to
409bb76
Compare
No updates since 2018 https://mvnrepository.com/repos/hseeberger Bintray is closed since 2021 https://www.jfrog.com/confluence/display/BT sbt has moved on https://www.scala-sbt.org/1.x/docs/Bintray-For-Plugins.html // https://bintray.com/sbt
…cies add failing test in order to demonstrate above
* add 'make integration-test'
409bb76
to
72047ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build.sbt
Outdated
@@ -27,7 +24,8 @@ lazy val aggregatedProjects: Seq[ProjectReference] = Seq(webapi, sipi) | |||
|
|||
lazy val buildSettings = Seq( | |||
organization := "org.knora", | |||
version := (ThisBuild / version).value | |||
version := (ThisBuild / version).value, | |||
javaOptions += "-Xmx2G" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious: did you finally manage to make sbt take this parameter and actually use 2GB?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OOM exception did not occur anymore. I will remove this setting here.
dsp-schema/core/src/test/scala/dsp/schema/domain/SchemaCommandsSpec.scala
Outdated
Show resolved
Hide resolved
@@ -1,13 +1,12 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was decided that we should use this copyright header in all files. It was probably used inconsistently - but instead of deleting, you should probably add it where it is missing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this should be automated though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that some build tool plugin could do this work for us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> #2317
Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
…sSpec.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
Pull Request Checklist
Task Description/Number
Split tests into different source sets, so that long running integration tests are separated from faster unit tests.
Make
sbt it
run all tests from all sbt sub projects from the IntegrationTest configuration in sequence.Make
stb test
run all tests from all sbt sub projects from the Test configuration in parallel.Run integration and unit tests in parallel Github Action build jobs.
Move most tests to
it
source set and keep some zio-test unit tests in test source set.Fix schema-core to run tests by adding zio-test-sbt to its dependencies.
Add documentation: README.md and internal docs.
Issue Number: DEV-1537
Basic Requirements
Please check if your PR fulfils the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Does this PR change client-test-data?