mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00

Adding a new @Tag("flaky") for tests that do not reliably return successes. These may still be valuable during development, but should not run in CI. Also tagging a few of the slower tests with the old @Tag("slow"), to speed up the run-time.
44 lines
1.0 KiB
Groovy
44 lines
1.0 KiB
Groovy
/** Configures the source sets for the code/ subprojects.
|
|
*
|
|
* Ideally this would have been done in the root build.gradle file, but due to disagreements
|
|
* between Gradle and IntelliJ's gradle plugin about how to interpret the sourceSets block
|
|
* when applied to subprojects from the root project, this has to be done in each subproject.
|
|
* */
|
|
apply plugin: 'java'
|
|
|
|
test {
|
|
maxHeapSize = "8G"
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.register('fastTests', Test) {
|
|
maxHeapSize = "8G"
|
|
useJUnitPlatform {
|
|
excludeTags "slow"
|
|
excludeTags "flaky"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs = [
|
|
'java',
|
|
'build/generated/source/proto/main/grpc',
|
|
'build/generated/source/proto/main/java'
|
|
]
|
|
}
|
|
resources {
|
|
srcDirs = [ 'resources' ]
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDirs = [ 'test' ]
|
|
}
|
|
resources {
|
|
srcDirs = [ 'test-resources' ]
|
|
}
|
|
}
|
|
}
|