Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
b2program
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
b2program
Commits
fedd9e07
Commit
fedd9e07
authored
5 months ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Try to enable parallel test running for all tests except JS tests
parent
d6ba2454
No related branches found
No related tags found
No related merge requests found
Pipeline
#149376
failed
5 months ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
build.gradle
+29
-5
29 additions, 5 deletions
build.gradle
with
30 additions
and
6 deletions
.gitlab-ci.yml
+
1
−
1
View file @
fedd9e07
...
...
@@ -37,4 +37,4 @@ test:linux:
-
mkdir cpp_build && cd cpp_build
-
cmake ..
-
make install & cd ..
-
./gradlew
test
--info --stacktrace
-
./gradlew
check
--info --stacktrace
This diff is collapsed.
Click to expand it.
build.gradle
+
29
−
5
View file @
fedd9e07
...
...
@@ -42,19 +42,43 @@ application {
mainClass
=
'de.hhu.stups.codegenerator.CodeGenerator'
}
// The JavaScript tests currently cannot run in parallel,
// because multiple tests copy files to the same location and conflict with each other.
final
noParallelTests
=
[
"de.hhu.stups.codegenerator.js.*"
,
]
test
{
//
We could enable e
xecut
ing
tests in parallel, as recommended here:
//
E
xecut
e
tests in parallel
where possible
, as recommended here:
// https://docs.gradle.org/8.12/userguide/performance.html#execute_tests_in_parallel
// But this currently doesn't work with the JavaScript tests,
// because multiple tests copy files to the same location and conflict with each other.
//maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
maxParallelForks
=
Runtime
.
runtime
.
availableProcessors
().
intdiv
(
2
)
?:
1
filter
{
excludePatterns
+=
noParallelTests
}
}
final
testNoParallel
=
tasks
.
register
(
"testNoParallel"
,
Test
)
{
description
=
"Runs tests that cannot be executed in parallel."
group
=
"verification"
testClassesDirs
=
sourceSets
.
test
.
output
.
classesDirs
classpath
=
sourceSets
.
test
.
runtimeClasspath
filter
{
includePatterns
+=
noParallelTests
}
}
tasks
.
named
(
"check"
).
configure
{
dependsOn
+=
[
testNoParallel
]
}
tasks
.
withType
(
Test
).
configureEach
{
testLogging
{
events
+=
[
TestLogEvent
.
PASSED
]
}
}
jar
{
manifest
{
attributes
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment